Skip to main content

vip_swaps

Creates, updates, deletes, gets or lists a vip_swaps resource.

Overview

Namevip_swaps
TypeResource
Idazure.network.vip_swaps

Fields

NameDatatypeDescription
idtextResource Id.
nametextResource name.
groupNametextfield from the properties object
resourceNametextfield from the properties object
singletonResourcetextfield from the properties object
slot_typetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupName, resourceName, singletonResource, subscriptionIdGets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production
listSELECTgroupName, resourceName, subscriptionIdGets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production
createINSERTgroupName, resourceName, singletonResource, subscriptionIdPerforms vip swap operation on swappable cloud services.

SELECT examples

Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production

SELECT
id,
name,
groupName,
resourceName,
singletonResource,
slot_type,
subscriptionId,
type
FROM azure.network.vw_vip_swaps
WHERE groupName = '{{ groupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new vip_swaps resource.

/*+ create */
INSERT INTO azure.network.vip_swaps (
groupName,
resourceName,
singletonResource,
subscriptionId,
properties
)
SELECT
'{{ groupName }}',
'{{ resourceName }}',
'{{ singletonResource }}',
'{{ subscriptionId }}',
'{{ properties }}'
;