Skip to main content

replication_network_mappings

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

Overview​

Namereplication_network_mappings
TypeResource
Idazure.recovery_services_site_recovery.replication_network_mappings

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
fabricSpecificSettingsobjectThe fabric specific settings.
locationstringResource Location.
primaryFabricFriendlyNamestringThe primary fabric friendly name.
primaryNetworkFriendlyNamestringThe primary network friendly name.
primaryNetworkIdstringThe primary network id for network mapping.
recoveryFabricArmIdstringThe recovery fabric ARM id.
recoveryFabricFriendlyNamestringThe recovery fabric friendly name.
recoveryNetworkFriendlyNamestringThe recovery network friendly name.
recoveryNetworkIdstringThe recovery network id for network mapping.
statestringThe pairing state for network mapping.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, fabric_name, network_name, network_mapping_name, subscription_idGets network mapping by name. Gets the details of an ASR network mapping.
list_by_replication_networksselectresource_group_name, resource_name, fabric_name, network_name, subscription_idGets all the network mappings under a network. Lists all ASR network mappings for the specified network.
listselectresource_group_name, resource_name, subscription_idGets all the network mappings under a vault. Lists all ASR network mappings in the vault.
createinsertresource_group_name, resource_name, fabric_name, network_name, network_mapping_name, subscription_id, propertiesCreates network mapping. The operation to create an ASR network mapping.
updateupdateresource_group_name, resource_name, fabric_name, network_name, network_mapping_name, subscription_idUpdates network mapping. The operation to update an ASR network mapping.
deletedeleteresource_group_name, resource_name, fabric_name, network_name, network_mapping_name, subscription_idDelete network mapping. The operation to delete a network mapping.

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
fabric_namestringFabric name. Required.
network_mapping_namestringNetwork mapping name. Required.
network_namestringPrimary network name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the Vault. Required.
subscription_idstring

SELECT examples​

Gets network mapping by name. Gets the details of an ASR network mapping.

SELECT
id,
name,
fabricSpecificSettings,
location,
primaryFabricFriendlyName,
primaryNetworkFriendlyName,
primaryNetworkId,
recoveryFabricArmId,
recoveryFabricFriendlyName,
recoveryNetworkFriendlyName,
recoveryNetworkId,
state,
systemData,
type
FROM azure.recovery_services_site_recovery.replication_network_mappings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND fabric_name = '{{ fabric_name }}' -- required
AND network_name = '{{ network_name }}' -- required
AND network_mapping_name = '{{ network_mapping_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples​

Creates network mapping. The operation to create an ASR network mapping.

INSERT INTO azure.recovery_services_site_recovery.replication_network_mappings (
properties,
resource_group_name,
resource_name,
fabric_name,
network_name,
network_mapping_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ fabric_name }}',
'{{ network_name }}',
'{{ network_mapping_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;

UPDATE examples​

Updates network mapping. The operation to update an ASR network mapping.

UPDATE azure.recovery_services_site_recovery.replication_network_mappings
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND fabric_name = '{{ fabric_name }}' --required
AND network_name = '{{ network_name }}' --required
AND network_mapping_name = '{{ network_mapping_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
type;

DELETE examples​

Delete network mapping. The operation to delete a network mapping.

DELETE FROM azure.recovery_services_site_recovery.replication_network_mappings
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND fabric_name = '{{ fabric_name }}' --required
AND network_name = '{{ network_name }}' --required
AND network_mapping_name = '{{ network_mapping_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;