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

NameDatatypeDescription
idtextResource Id
nametextResource Name
fabricNametextfield from the properties object
fabric_specific_settingstextfield from the properties object
locationtextResource Location
networkMappingNametextfield from the properties object
networkNametextfield from the properties object
primary_fabric_friendly_nametextfield from the properties object
primary_network_friendly_nametextfield from the properties object
primary_network_idtextfield from the properties object
recovery_fabric_arm_idtextfield from the properties object
recovery_fabric_friendly_nametextfield from the properties object
recovery_network_friendly_nametextfield from the properties object
recovery_network_idtextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, networkMappingName, networkName, resourceGroupName, resourceName, subscriptionIdGets the details of an ASR network mapping.
listSELECTresourceGroupName, resourceName, subscriptionIdLists all ASR network mappings in the vault.
list_by_replication_networksSELECTfabricName, networkName, resourceGroupName, resourceName, subscriptionIdLists all ASR network mappings for the specified network.
createINSERTfabricName, networkMappingName, networkName, resourceGroupName, resourceName, subscriptionId, data__propertiesThe operation to create an ASR network mapping.
deleteDELETEfabricName, networkMappingName, networkName, resourceGroupName, resourceName, subscriptionIdThe operation to delete a network mapping.
updateUPDATEfabricName, networkMappingName, networkName, resourceGroupName, resourceName, subscriptionIdThe operation to update an ASR network mapping.

SELECT examples

Lists all ASR network mappings in the vault.

SELECT
id,
name,
fabricName,
fabric_specific_settings,
location,
networkMappingName,
networkName,
primary_fabric_friendly_name,
primary_network_friendly_name,
primary_network_id,
recovery_fabric_arm_id,
recovery_fabric_friendly_name,
recovery_network_friendly_name,
recovery_network_id,
resourceGroupName,
resourceName,
state,
subscriptionId,
type
FROM azure.recovery_services_site_recovery.vw_replication_network_mappings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_network_mappings (
fabricName,
networkMappingName,
networkName,
resourceGroupName,
resourceName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ fabricName }}',
'{{ networkMappingName }}',
'{{ networkName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a replication_network_mappings resource.

/*+ update */
UPDATE azure.recovery_services_site_recovery.replication_network_mappings
SET
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND networkMappingName = '{{ networkMappingName }}'
AND networkName = '{{ networkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified replication_network_mappings resource.

/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_network_mappings
WHERE fabricName = '{{ fabricName }}'
AND networkMappingName = '{{ networkMappingName }}'
AND networkName = '{{ networkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';