jlouie1
jlouie1
Set-AzRecoveryServicesAsrReplicationProtectedItem System.NullReferenceException on GetValueFromArmId
@viverm - Any progress? I'm using Az module 2.2.0 and it's still broken.
Set-AzRecoveryServicesAsrReplicationProtectedItem System.NullReferenceException on GetValueFromArmId
Yes, VMware to Azure using ASR. This cmdlet has worked in the past and now I have no way of setting ASR recovered VM settings except via the web portal...
Set-AzRecoveryServicesAsrReplicationProtectedItem System.NullReferenceException on GetValueFromArmId
Set-AzureRmRecoveryServicesAsrReplicationProtectedItem -InputObject $vminfo01 -LicenseType WindowsServer -NicSelectionType SelectedByUser -PrimaryNic $vminfo01.NicDetailsList.NicId ` -RecoveryNetworkId /subscriptions/0c4b908f-4c31-4c3e-a3bf-50fdad9a7647/resourceGroups/RG-CRP01-DR01-SCUS-MasterRG/providers/Microsoft.Network/virtualNetworks/VN-DR01-SCUS ` -RecoveryNicStaticIPAddress $vmIP -RecoveryNicSubnetName $vmSubnet -UseManagedDisk True -Debug -------------------- Set-AzureRmRecoveryServicesAsrReplicationProtectedItem : Operation failed. ClientRequestId: 5463d9a7-34c1-4ad0-8012-506f0c9886f6-2019-06-11 13:35:01Z-Ps Object reference...
Set-AzRecoveryServicesAsrReplicationProtectedItem System.NullReferenceException on GetValueFromArmId
It works again in latest modules. Thanks! > Get-installedModule -Name Az 2.4.0 Az > Get-installedModule -Name Az.recoveryservices 1.4.2 Az.RecoveryServices
Set-AzRecoveryServicesAsrReplicationProtectedItem System.NullReferenceException on GetValueFromArmId
I had to update PowerShellGet: Install-Module –Name PowerShellGet –Force
Thanks for the fixes listed above. The error messages and documentation are no help in troubleshooting this issue. This needs to corrected as any previous scripts using this are now...