Azure / Azure/azure-powershell

Set-AzRecoveryServicesAsrReplicationProtectedItem not updating NIC configuration in Az.RecoveryServices 5.3.0

Open
#17,795 4 comments 0 reactions 0 assignees View on GitHub
bug customer-reported Recovery Services Site-Recovery Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

We run a script in cloud shell that does the following

$ipConfigs = New-AzRecoveryServicesAsrVMNicIPConfig -IpConfigName $getnic.IpConfigurations.Name `
-RecoverySubnetName $drsubnet_primary -TfoSubnetName $drsubnet_test `
-RecoveryStaticIPAddress "" -TfoStaticIPAddress ""
$nicconfig = New-AzRecoveryServicesAsrVMNicConfig -NicId $AsrNicGuid `
-ReplicationProtectedItem $i -RecoveryVMNetworkId $RecoveryNetwork `
-TfoVMNetworkId $RecoveryNetwork -IPConfig $ipConfigs `
-EnableAcceleratedNetworkingOnRecovery -EnableAcceleratedNetworkingOnTfo
$TempASRJob = Set-AzRecoveryServicesAsrReplicationProtectedItem -ReplicationProtectedItem $i -ASRVMNicConfiguration $nicconfig

the last line should set the test failover vnet and subnet. The asrjob is submitted and says it succeeds, but the nic does not get updated

It looks like the 5.3 modules uses az.recoveryservices vault API version 2021-11-01, 2021-10-01 works fine (tested via postman).

### Issue script & Debug output

```PowerShell
set-azcontext -SubscriptionId

#Recovery Vault Name
[string]$rv_name = "dr-recovery-vault-XXXX"
#Primary Fabric Name
$rv_rg="vmdr-XXXX-20200804"
[string]$fabric_name = "asr-a2a-default-westus2"
#Recovery Fabric Name
[string]$dr_fabric_name = "asr-a2a-default-eastus"
#Primary Protection Container Name
[string]$prot_name = "asr-a2a-default-westus2-container"
#DR Protection container Name
[string]$dr_prot_name = "asr-a2a-default-eastus-container"

# Input file for VM list and VM resource group
[string]$ConfigFilePath = "./csv/onesrc.csv"
#SubscriptionName
$SubscriptionName = "XXXX - vm Production and Non-Prod"
#Azure Primary Region
[string]$region = "westus2"
#Azure DR Region
[string]$drregion = "eastus"

#Recovery Vault Name
[string]$rv_name = "dr-recovery-vault-XXXX"
#Primary Fabric Name
[string]$fabric_name = "asr-a2a-default-westus2"
#Recovery Fabric Name
[string]$dr_fabric_name = "asr-a2a-default-eastus"
#Primary Protection Container Name
[string]$prot_name = "asr-a2a-default-westus2-container"
#DR Protection container Name
[string]$dr_prot_name = "asr-a2a-default-eastus-container"

#A2A Policy
[string]$a2a_policy = "24-hour-retention-policy"
#ASR Protection Name
[string]$a2a_pri_to_dr = "westus2-eastus-24-hour-retention-policy"

# Cache Storage account on primary region for VM replication
[string]$primary_sa_rg = "vmdr-XXXX-20200804"
[string]$primary_sa_acc = "ic0bsjdrrecoverasrcache"

# primary and recovery vnet & subnet info
[string]$vnet = "default-usw2-XXXX"
[string]$vnet_rg = "network-usw2-XXXX"
[string]$drvnet = "vm-use1-XXXX"
[string]$drvnet_test = "vm-use1-XXXX"
[string]$drsubnet_test = "isolated"
[string]$drvnet_rg = "network-use1-XXXX"
[string]$drsubnet_primary = "default"

$vault = Get-AzRecoveryServicesVault -Name $rv_name -ResourceGroupName $rv_rg
$rv_set = Set-AzRecoveryServicesAsrVaultContext -Vault $vault

$PrimaryFabric = Get-AzRecoveryServicesAsrFabric -Name $fabric_name
$PrimaryProtContainer = Get-AzRecoveryServicesAsrProtectionContainer -Fabric $PrimaryFabric -Name $prot_name
$protectedItems=Get-AzRecoveryServicesAsrReplicationProtectedItem -ProtectionContainer $PrimaryProtContainer

#Recovery Network in the recovery region
$RecoveryVnet = Get-AzVirtualNetwork -Name $drvnet -ResourceGroupName $drvnet_rg
$RecoveryNetwork = $RecoveryVnet.Id

$replicatedProtectedItems=$protectedItems | where { $_.FriendlyName -like "onesrc*"}
$i=$replicatedProtectedItems[0]
$vm_rg_name="onesrc-XXXX-20211020"

$AsrNicGuid = $i.NicDetailsList.NicId
$vmnic = Get-AzVM -Name $i.FriendlyName -ResourceGroupName $vm_rg_name
$getnic = Get-AzNetworkInterface -ResourceId $vmnic.NetworkProfile.NetworkInterfaces.Id
$accsetting = $getnic.EnableAcceleratedNetworking
Write-Host -ForegroundColor Yellow -BackgroundColor black ("Updating NIC for " + $i.FriendlyName )

# $nicconfig = New-AzRecoveryServicesAsrVMNicConfig -NicId $AsrNicGuid -ReplicationProtectedItem $i -RecoveryVMNetworkId $RecoveryNetwork `
# -RecoveryVMSubnetName $drsubnet_primary -RecoveryNicStaticIPAddress "" -TfoVMNetworkId $RecoveryNetwork `
# -TfoVMSubnetName $drsubnet_test -TfoNicStaticIPAddress "" `
# -EnableAcceleratedNetworkingOnRecovery -EnableAcceleratedNetworkingOnTfo
$ipConfigs = New-AzRecoveryServicesAsrVMNicIPConfig -IpConfigName $getnic.IpConfigurations.Name `
-RecoverySubnetName $drsubnet_primary -TfoSubnetName $drsubnet_test `
-RecoveryStaticIPAddress "" -TfoStaticIPAddress ""
$nicconfig = New-AzRecoveryServicesAsrVMNicConfig -NicId $AsrNicGuid `
-ReplicationProtectedItem $i -RecoveryVMNetworkId $RecoveryNetwork `
-TfoVMNetworkId $RecoveryNetwork -IPConfig $ipConfigs `
-EnableAcceleratedNetworkingOnRecovery -EnableAcceleratedNetworkingOnTfo
Set-AzRecoveryServicesAsrReplicationProtectedItem -ReplicationProtectedItem $i -ASRVMNicConfiguration $nicconfig

[Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: ''
5:34:48 PM - [ManagedServiceIdentityAuthenticator] Calling ManagedIdentityCredential.GetTokenAsync - :'', Scopes:'https://management.core.windows.net/', UserId:''
ManagedIdentityCredential.GetToken invoked. Scopes: [ https://management.core.windows.net/ ] ParentRequestId:
Request [8be8cf0a-8234-4af1-9058-a8515ba38245] POST http://localhost:50342/oauth2/token
Metadata:REDACTED
x-ms-client-request-id:8be8cf0a-8234-4af1-9058-a8515ba38245
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.5.0,(.NET 6.0.3; Linux 5.4.0-1074-azure #77~18.04.1-Ubuntu SMP Wed Mar 30 15:36:02 UTC 2022)
Content-Type:application/x-www-form-urlencoded
client assembly: Azure.Identity
Response [8be8cf0a-8234-4af1-9058-a8515ba38245] 200 OK (00.0s)
X-Powered-By:REDACTED
ETag:W/"881-Sd3Avf5BtHjWFzfVG70EOmn6/mU"
Date:Wed, 13 Apr 2022 17:34:48 GMT
Connection:keep-alive
Content-Type:application/json; charset=utf-8
Content-Length:2177

ManagedIdentityCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net/ ] ParentRequestId: ExpiresOn: 2022-04-13T17:37:54.0000000+00:00
[Common.Authentication]: Received token with LoginType 'User', Tenant: '', UserId: 'MSI@50342'
[Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: ''
5:34:48 PM - [ManagedServiceIdentityAuthenticator] Calling ManagedIdentityCredential.GetTokenAsync - :'', Scopes:'https://management.core.windows.net/', UserId:''
ManagedIdentityCredential.GetToken invoked. Scopes: [ https://management.core.windows.net/ ] ParentRequestId:
Request [89a69121-8001-4609-bb62-351fb0fbc3a7] POST http://localhost:50342/oauth2/token
Metadata:REDACTED
x-ms-client-request-id:89a69121-8001-4609-bb62-351fb0fbc3a7
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.5.0,(.NET 6.0.3; Linux 5.4.0-1074-azure #77~18.04.1-Ubuntu SMP Wed Mar 30 15:36:02 UTC 2022)
Content-Type:application/x-www-form-urlencoded
client assembly: Azure.Identity
Response [89a69121-8001-4609-bb62-351fb0fbc3a7] 200 OK (00.0s)
X-Powered-By:REDACTED
ETag:W/"881-Sd3Avf5BtHjWFzfVG70EOmn6/mU"
Date:Wed, 13 Apr 2022 17:34:48 GMT
Connection:keep-alive
Content-Type:application/json; charset=utf-8
Content-Length:2177

ManagedIdentityCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net/ ] ParentRequestId: ExpiresOn: 2022-04-13T17:37:54.0000000+00:00
[Common.Authentication]: Received token with LoginType 'User', Tenant: '', UserId: 'MSI@50342'
ManagedIdentityCredential.GetToken invoked. Scopes: [ https://management.core.windows.net/ ] ParentRequestId:
Request [1d401617-c718-43f8-a77a-71a3988f4318] POST http://localhost:50342/oauth2/token
Metadata:REDACTED
x-ms-client-request-id:1d401617-c718-43f8-a77a-71a3988f4318
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.5.0,(.NET 6.0.3; Linux 5.4.0-1074-azure #77~18.04.1-Ubuntu SMP Wed Mar 30 15:36:02 UTC 2022)
Content-Type:application/x-www-form-urlencoded
client assembly: Azure.Identity
Response [1d401617-c718-43f8-a77a-71a3988f4318] 200 OK (00.0s)
X-Powered-By:REDACTED
ETag:W/"881-Sd3Avf5BtHjWFzfVG70EOmn6/mU"
Date:Wed, 13 Apr 2022 17:34:48 GMT
Connection:keep-alive
Content-Type:application/json; charset=utf-8
Content-Length:2177

ManagedIdentityCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net/ ] ParentRequestId: ExpiresOn: 2022-04-13T17:37:54.0000000+00:00
============================ HTTP REQUEST ============================

HTTP Method:
PATCH

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups/vmdr-XXXX-20200804/providers/Microsoft.RecoveryServices/vaults/dr-recovery-vault-XXXX/replicationFabrics/asr-a2a-default-westus2/replicationProtectionContainers/asr-a2a-default-westus2-container/replicationProtectedItems/bc7faceb-54f3-4071-ae39-135f8684b764?api-version=2021-11-01

Headers:
x-ms-client-request-id : 54f66738-b49a-4c2a-8d42-0e2d21c250bb
Accept-Language : en-US
Agent-Authentication : {"NotBeforeTimestamp":"\/Date(1649867688967)\/","NotAfterTimestamp":"\/Date(1650472488967)\/","ClientRequestId":"db7d2e9d-d1eb-4fde-b4b1-14cdc1cdc327-2022-04-13 17:34:48Z-Ps","HashFunction":"HMACSHA256","Hmac":"DrmTiUwakLWky9cIc1JdfCgmld4XV79zLn7JPLgqiFI=","Version":"1.2","PropertyBag":{}}

Body:
{
"properties": {
"recoveryAzureVMName": "onesrc-pjco00",
"selectedRecoveryAzureNetworkId": "/subscriptions//resourceGroups/network-use1-XXXX/providers/Microsoft.Network/virtualNetworks/vm-use1-XXXX",
"selectedTfoAzureNetworkId": "/subscriptions//resourceGroups/network-use1-XXXX/providers/Microsoft.Network/virtualNetworks/vm-use1-XXXX",
"vmNics": [
{
"nicId": "a6f798cc-586d-586a-a9b4-1395ef80016e",
"ipConfigs": [
{
"ipConfigName": "ipconfig1",
"isPrimary": true,
"isSeletedForFailover": false,
"recoverySubnetName": "default",
"recoveryStaticIPAddress": "",
"recoveryPublicIPAddressId": "",
"recoveryLBBackendAddressPoolIds": [],
"tfoSubnetName": "isolated",
"tfoStaticIPAddress": "",
"tfoPublicIPAddressId": "",
"tfoLBBackendAddressPoolIds": []
}
],
"selectionType": "SelectedByUser",
"recoveryNetworkSecurityGroupId": "",
"enableAcceleratedNetworkingOnRecovery": true,
"tfoNetworkSecurityGroupId": "",
"enableAcceleratedNetworkingOnTfo": true,
"reuseExistingNic": false,
"tfoReuseExistingNic": false
}
],
"licenseType": "WindowsServer",
"recoveryAvailabilitySetId": "/subscriptions//resourceGroups/onesrc-XXXX-20211020-asr/providers/Microsoft.Compute/availabilitySets/ONESRC-PJCO-AS-asr",
"providerSpecificDetails": {
"instanceType": "A2A",
"tfoAzureVMName": "onesrc-pjco00-test"
}
}
}

============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Cache-Control : no-cache
Pragma : no-cache
Location : https://management.azure.com/subscriptions//resourceGroups/vmdr-XXXX-20200804/providers/Microsoft.RecoveryServices/vaults/dr-recovery-vault-XXXX/replicationFabrics/asr-a2a-default-westus2/replicationProtectionContainers/asr-a2a-default-westus2-container/replicationProtectedItems/bc7faceb-54f3-4071-ae39-135f8684b764/operationresults/786276df-58a8-4385-bfd5-1d516968aed5?api-version=2021-11-01
Retry-After : 30
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-request-id : /subscriptions//resourceGroups/vmdr-XXXX-20200804/providers/Microsoft.RecoveryServices/vaults/dr-recovery-vault-XXXX/replicationJobs/786276df-58a8-4385-bfd5-1d516968aed5
Azure-AsyncOperation : https://management.azure.com/subscriptions//resourceGroups/vmdr-XXXX-20200804/providers/Microsoft.RecoveryServices/vaults/dr-recovery-vault-XXXX/replicationOperationStatus/786276df-58a8-4385-bfd5-1d516968aed5?api-version=2021-11-01
X-Content-Type-Options : nosniff
x-ms-client-request-id : 54f66738-b49a-4c2a-8d42-0e2d21c250bb
x-ms-ratelimit-remaining-subscription-writes: 1198
x-ms-correlation-request-id : 69acb770-5aff-4b67-b087-221ff1e0edea
x-ms-routing-request-id : WESTUS:20220413T173450Z:69acb770-5aff-4b67-b087-221ff1e0edea
Date : Wed, 13 Apr 2022 17:34:49 GMT

Body:

[Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: ''
5:34:50 PM - [ManagedServiceIdentityAuthenticator] Calling ManagedIdentityCredential.GetTokenAsync - :'', Scopes:'https://management.core.windows.net/', UserId:''
ManagedIdentityCredential.GetToken invoked. Scopes: [ https://management.core.windows.net/ ] ParentRequestId:
Request [2f14a8bc-a2f2-4f8b-a86d-732854b8458f] POST http://localhost:50342/oauth2/token
Metadata:REDACTED
x-ms-client-request-id:2f14a8bc-a2f2-4f8b-a86d-732854b8458f
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.5.0,(.NET 6.0.3; Linux 5.4.0-1074-azure #77~18.04.1-Ubuntu SMP Wed Mar 30 15:36:02 UTC 2022)
Content-Type:application/x-www-form-urlencoded
client assembly: Azure.Identity
Response [2f14a8bc-a2f2-4f8b-a86d-732854b8458f] 200 OK (00.0s)
X-Powered-By:REDACTED
ETag:W/"881-tM160BN4maMtqooQbHVKgun+ZR8"
Date:Wed, 13 Apr 2022 17:34:50 GMT
Connection:keep-alive
Content-Type:application/json; charset=utf-8
Content-Length:2177

ManagedIdentityCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net/ ] ParentRequestId: ExpiresOn: 2022-04-13T17:37:54.0000000+00:00
[Common.Authentication]: Received token with LoginType 'User', Tenant: '', UserId: 'MSI@50342'
[Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: ''
5:34:50 PM - [ManagedServiceIdentityAuthenticator] Calling ManagedIdentityCredential.GetTokenAsync - :'', Scopes:'https://management.core.windows.net/', UserId:''
ManagedIdentityCredential.GetToken invoked. Scopes: [ https://management.core.windows.net/ ] ParentRequestId:
Request [17cf4d82-2bec-44cb-860e-afceceae3648] POST http://localhost:50342/oauth2/token
Metadata:REDACTED
x-ms-client-request-id:17cf4d82-2bec-44cb-860e-afceceae3648
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.5.0,(.NET 6.0.3; Linux 5.4.0-1074-azure #77~18.04.1-Ubuntu SMP Wed Mar 30 15:36:02 UTC 2022)
Content-Type:application/x-www-form-urlencoded
client assembly: Azure.Identity
Response [17cf4d82-2bec-44cb-860e-afceceae3648] 200 OK (00.0s)
X-Powered-By:REDACTED
ETag:W/"881-tM160BN4maMtqooQbHVKgun+ZR8"
Date:Wed, 13 Apr 2022 17:34:50 GMT
Connection:keep-alive
Content-Type:application/json; charset=utf-8
Content-Length:2177

ManagedIdentityCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net/ ] ParentRequestId: ExpiresOn: 2022-04-13T17:37:54.0000000+00:00
[Common.Authentication]: Received token with LoginType 'User', Tenant: '', UserId: 'MSI@50342'
ManagedIdentityCredential.GetToken invoked. Scopes: [ https://management.core.windows.net/ ] ParentRequestId:
Request [388747b0-ec97-4e77-8b3f-4a701e176b40] POST http://localhost:50342/oauth2/token
Metadata:REDACTED
x-ms-client-request-id:388747b0-ec97-4e77-8b3f-4a701e176b40
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.5.0,(.NET 6.0.3; Linux 5.4.0-1074-azure #77~18.04.1-Ubuntu SMP Wed Mar 30 15:36:02 UTC 2022)
Content-Type:application/x-www-form-urlencoded
client assembly: Azure.Identity
Response [388747b0-ec97-4e77-8b3f-4a701e176b40] 200 OK (00.0s)
X-Powered-By:REDACTED
ETag:W/"881-tM160BN4maMtqooQbHVKgun+ZR8"
Date:Wed, 13 Apr 2022 17:34:50 GMT
Connection:keep-alive
Content-Type:application/json; charset=utf-8
Content-Length:2177

ManagedIdentityCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net/ ] ParentRequestId: ExpiresOn: 2022-04-13T17:37:54.0000000+00:00
============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups/vmdr-XXXX-20200804/providers/Microsoft.RecoveryServices/vaults/dr-recovery-vault-XXXX/replicationJobs/786276df-58a8-4385-bfd5-1d516968aed5?api-version=2021-11-01

Headers:
x-ms-client-request-id : 54f66738-b49a-4c2a-8d42-0e2d21c250bb
Accept-Language : en-US
Agent-Authentication : {"NotBeforeTimestamp":"\/Date(1649867690450)\/","NotAfterTimestamp":"\/Date(1650472490450)\/","ClientRequestId":"3778e8c3-3f7d-4b36-ad5f-9c97492e3f1d-2022-04-13 17:34:50Z-Ps","HashFunction":"HMACSHA256","Hmac":"DvHwA/x5OO2nJvqC1g+EfYck/cIQJrj7VNTb66jiDSw=","Version":"1.2","PropertyBag":{}}

Body:

============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-subscription-reads: 11995
Server : Microsoft-IIS/10.0,Kestrel
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-request-id : /subscriptions//resourceGroups/vmdr-XXXX-20200804/providers/Microsoft.RecoveryServices/vaults/dr-recovery-vault-XXXX/replicationJobs/786276df-58a8-4385-bfd5-1d516968aed5
X-Content-Type-Options : nosniff
x-ms-client-request-id : 54f66738-b49a-4c2a-8d42-0e2d21c250bb
x-ms-correlation-request-id : cd2fef9a-fd4d-4f94-8f23-8a838bd608e0
x-ms-routing-request-id : WESTUS:20220413T173450Z:cd2fef9a-fd4d-4f94-8f23-8a838bd608e0
Date : Wed, 13 Apr 2022 17:34:50 GMT

Body:
{
"id": "/subscriptions//resourceGroups/vmdr-XXXX-20200804/providers/Microsoft.RecoveryServices/vaults/dr-recovery-vault-XXXX/replicationJobs/786276df-58a8-4385-bfd5-1d516968aed5",
"name": "786276df-58a8-4385-bfd5-1d516968aed5",
"type": "Microsoft.RecoveryServices/vaults/replicationJobs",
"properties": {
"activityId": "54f66738-b49a-4c2a-8d42-0e2d21c250bb ActivityId: 69acb770-5aff-4b67-b087-221ff1e0edea",
"scenarioName": "UpdateVmProperties",
"friendlyName": "Update the virtual machine",
"state": "InProgress",
"stateDescription": "InProgress",
"tasks": [
{
"taskId": "f8101054-9ca0-4fd2-b05d-5ab6d1d4ac33",
"name": "UpdateVmPropertiesTask",
"startTime": "0001-01-01T00:00:00",
"endTime": "0001-01-01T00:00:00",
"allowedActions": [],
"friendlyName": "Update the virtual machine properties",
"state": "NotStarted",
"stateDescription": "NotStarted",
"taskType": "TaskDetails",
"customDetails": {
"instanceType": "TaskDetails"
},
"groupTaskCustomDetails": null,
"errors": []
}
],
"errors": [],
"startTime": "2022-04-13T17:34:50.1915294Z",
"allowedActions": [],
"targetObjectId": "1187c974-0753-586a-b624-41ff442df57f",
"targetObjectName": "onesrc-pjco00",
"targetInstanceType": "ProtectionEntity",
"customDetails": {
"instanceType": "AsrJobDetails",
"affectedObjectDetails": {
"primaryVmId": "1187c974-0753-586a-b624-41ff442df57f",
"primaryVmName": "onesrc-pjco00",
"recoveryVmId": "",
"recoveryVmName": "onesrc-pjco00",
"protectionProfileId": "3a7499e4-4c43-5f97-b82f-3a7634d334b4",
"primaryCloudId": "3fc74994-e73c-5e27-9fbf-2e59c994f246",
"primaryCloudName": "asr-a2a-default-westus2-container",
"recoveryCloudId": "f9752462-54be-5319-98ec-76540af94fe2",
"recoveryCloudName": "asr-a2a-default-eastus-container",
"primaryVmmId": "371e7d61-7d8d-503a-8691-40a43d612cc5",
"primaryVmmName": "West US 2",
"recoveryVmmId": "c1bd511f-4b87-5d16-8ccd-883447811376",
"recoveryVmmName": "East US",
"primaryFabricProviderId": "Azure",
"recoveryFabricProviderId": "Azure"
}
}
}
}

Name : 786276df-58a8-4385-bfd5-1d516968aed5
ID : /subscriptions//resourceGroups/vmdr-XXXX-20200804/providers/Microsoft.RecoveryServices/vaults/dr-recovery-vault-XXXX/replicationJobs/786276df-58a8-4385-bfd5-1d516968aed5
Type : Microsoft.RecoveryServices/vaults/replicationJobs
JobType : UpdateVmProperties
DisplayName : Update the virtual machine
ClientRequestId : 54f66738-b49a-4c2a-8d42-0e2d21c250bb ActivityId: 69acb770-5aff-4b67-b087-221ff1e0edea
State : InProgress
StateDescription : InProgress
StartTime : 4/13/2022 5:34:50 PM
EndTime : 
TargetObjectId : 1187c974-0753-586a-b624-41ff442df57f
TargetObjectType : ProtectionEntity
TargetObjectName : onesrc-pjco00
AllowedActions : 
Tasks : {Update the virtual machine properties}
Errors : {}

AzureQoSEvent: Module: Az.RecoveryServices:5.3.0; CommandName: Set-AzRecoveryServicesAsrReplicationProtectedItem; PSVersion: 7.2.2; IsSuccess: True; Duration: 00:00:02.3663510
Finish sending metric.
5:34:51 PM - SetAzureRmRecoveryServicesAsrReplicationProtectedItem end processing.
```

### Environment data

```PowerShell
PS /home/chrischua/git2/dr-snapshot> $psversiontable

Name Value
---- -----
PSVersion 7.2.2
PSEdition Core
GitCommitId 7.2.2
OS Linux 5.4.0-1074-azure #77~18.04.1-Ubuntu SMP Wed Mar 30 15:36:02 UTC 2022
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```

### Module versions

```PowerShell
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 2.7.5 Az.Accounts {Add-AzEnvironment, Clear-AzContext, Clear-AzDefault, Connect-AzAccount…}
Script 4.25.0 Az.Compute {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnattendContent, Add-AzVMDataDisk…}
Script 4.16.0 Az.Network {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool, Add-AzApplicationGatewayBackendHttpSetting, Add-AzApplicationGatewayCu…
Script 5.3.0 Az.RecoveryServices {Add-AzRecoveryServicesAsrReplicationProtectedItemDisk, Backup-AzRecoveryServicesBackupItem, Copy-AzRecoveryServicesVault, Disable-AzRecoveryServicesBackupAutoProtect…
Script 5.5.0 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}
Script 4.4.0 Az.Storage {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountNetworkRule, Close-AzStorageFileHandle…}
Script 0.1.599.7 AzureAD.Standard.Preview {Add-AzureADAdministrativeUnitMember, Add-AzureADApplicationOwner, Add-AzureADApplicationPolicy, Add-AzureADDeviceRegisteredOwner…}
Script 0.9.3 AzurePSDrive
```

### Error output

```PowerShell
PS /home/chrischua/git2/dr-snapshot> resolve-azerror
DEBUG: 6:06:29 PM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 6:06:29 PM - using account id 'MSI@50342'...
WARNING: Upcoming breaking changes in the cmdlet 'Resolve-AzError' :
The `Resolve-Error` alias will be removed in a future release. Please change any scripts that use this alias to use `Resolve-AzError` instead.
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.

The Azure PowerShell team is listening, please let us know how we are doing: https://aka.ms/azpssurvey?Q_CHL=ERROR.

DEBUG: AzureQoSEvent: Module: Az.Accounts:2.7.5; CommandName: Resolve-AzError; PSVersion: 7.2.2; IsSuccess: True; Duration: 00:00:00.0041531
DEBUG: Finish sending metric.
DEBUG: 6:06:29 PM - ResolveError end processing.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.