Skip to main content

vip_swap

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

Overview

Namevip_swap
TypeResource
Idazure.network.vip_swap

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
slotTypestringSpecifies slot info on a cloud service. Known values are: "Production" and "Staging". (Production, Staging)
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectgroup_name, resource_name, subscription_idGets 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.
createinsertgroup_name, resource_name, subscription_idPerforms vip swap operation on swappable cloud services.
list_rawexecgroup_name, resource_name, subscription_idGets 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
group_namestringRequired.
resource_namestringThe name of the cloud service. Required.
subscription_idstring

SELECT examples

Gets 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.

SELECT
id,
name,
slotType,
type
FROM azure.network.vip_swap
WHERE group_name = '{{ group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Performs vip swap operation on swappable cloud services.

INSERT INTO azure.network.vip_swap (
properties,
group_name,
resource_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ group_name }}',
'{{ resource_name }}',
'{{ subscription_id }}'
;

Lifecycle Methods

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.

EXEC azure.network.vip_swap.list_raw 
@group_name='{{ group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;