No Error on create Snapshot command when snapshot already exists
Description
When trying to use the create to make a snapshot if you try to use the same name the CLI sometimes errors whereas the PowerShell never errors and it should. You cannot overwrite a snapshot because it's a read only so if someone tries to update a snapshot by running a new create or even an update there should be an error stating they can't update and/or create the snapshot because the name already exists.
Steps to reproduce
PS /home/cassey> $snapshotconfig = New-AzSnapshotConfig -Location 'North Central US' -DiskSizeGB 5 -AccountType Standard_LRS -OsType Windows -CreateOption Empty
PS /home/cassey> New-AzSnapshot -ResourceGroupName "snapshotTestVM" -SnapshotName 'test1' -Snapshot $snapshotconfig
ResourceGroupName : snapshotTestVM
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 9/23/2020 3:31:47 PM
OsType : Windows
HyperVGeneration :
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 5
DiskSizeBytes : 5368709120
UniqueId : 67b45ace-573d-46e6-a683-8d0d11329d96
EncryptionSettingsCollection :
ProvisioningState : Succeeded
Incremental : False
Encryption : Microsoft.Azure.Management.Compute.Models.Encryption
Id : /subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1
Name : test1
Type : Microsoft.Compute/snapshots
Location : northcentralus
Tags : {}
NetworkAccessPolicy : AllowAll
DiskAccessId :
PS /home/cassey> New-AzSnapshot -ResourceGroupName "snapshotTestVM" -SnapshotName 'test1' -Snapshot $snapshotconfig
ResourceGroupName : snapshotTestVM
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 9/23/2020 3:31:47 PM
OsType : Windows
HyperVGeneration :
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 5
DiskSizeBytes : 5368709120
UniqueId : 67b45ace-573d-46e6-a683-8d0d11329d96
EncryptionSettingsCollection :
ProvisioningState : Succeeded
Incremental : False
Encryption : Microsoft.Azure.Management.Compute.Models.Encryption
Id : /subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1
Name : test1
Type : Microsoft.Compute/snapshots
Location : northcentralus
Tags : {}
NetworkAccessPolicy : AllowAll
DiskAccessId :
CLI:
cassey@Azure:~$ az snapshot create -g 'snapshotTestVM' -n 'test1' --source '/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/SNAPSHOTTESTVM/providers/Microsoft.Compute/disks/snaoshotTestVM_OsDisk_1_c166f9289a4340fa9d872e887262cf2e'
{- Finished ..
"creationData": {
"createOption": "Copy",
"galleryImageReference": null,
"imageReference": null,
"sourceResourceId": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/SNAPSHOTTESTVM/providers/Microsoft.Compute/disks/snaoshotTestVM_OsDisk_1_c166f9289a4340fa9d872e887262cf2e",
"sourceUniqueId": "c166f928-9a43-40fa-9d87-2e887262cf2e",
"sourceUri": null,
"storageAccountId": null,
"uploadSizeBytes": null
},
"diskAccessId": null,
"diskSizeBytes": 136367308800,
"diskSizeGb": 127,
"encryption": {
"diskEncryptionSetId": null,
"type": "EncryptionAtRestWithPlatformKey"
},
"encryptionSettingsCollection": null,
"hyperVgeneration": "V1",
"id": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1",
"incremental": false,
"location": "northcentralus",
"managedBy": null,
"name": "test1",
"networkAccessPolicy": "AllowAll",
"osType": "Windows",
"provisioningState": "Succeeded",
"resourceGroup": "snapshotTestVM",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"tags": {},
"timeCreated": "2020-09-23T20:22:36.275508+00:00",
"type": "Microsoft.Compute/snapshots",
"uniqueId": "4276066a-85a8-4f8c-bb86-fe7c6f01a003"
}
cassey@Azure:~$ az snapshot create -g 'snapshotTestVM' -n 'test1' --source '/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/SNAPSHOTTESTVM/providers/Microsoft.Compute/disks/snaoshotTestVM_OsDisk_1_c166f9289a4340fa9d872e887262cf2e'
{- Finished ..
"creationData": {
"createOption": "Copy",
"galleryImageReference": null,
"imageReference": null,
"sourceResourceId": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/SNAPSHOTTESTVM/providers/Microsoft.Compute/disks/snaoshotTestVM_OsDisk_1_c166f9289a4340fa9d872e887262cf2e",
"sourceUniqueId": "c166f928-9a43-40fa-9d87-2e887262cf2e",
"sourceUri": null,
"storageAccountId": null,
"uploadSizeBytes": null
},
"diskAccessId": null,
"diskSizeBytes": 136367308800,
"diskSizeGb": 127,
"encryption": {
"diskEncryptionSetId": null,
"type": "EncryptionAtRestWithPlatformKey"
},
"encryptionSettingsCollection": null,
"hyperVgeneration": "V1",
"id": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1",
"incremental": false,
"location": "northcentralus",
"managedBy": null,
"name": "test1",
"networkAccessPolicy": "AllowAll",
"osType": "Windows",
"provisioningState": "Succeeded",
"resourceGroup": "snapshotTestVM",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"tags": {},
"timeCreated": "2020-09-23T20:22:36.275508+00:00",
"type": "Microsoft.Compute/snapshots",
"uniqueId": "4276066a-85a8-4f8c-bb86-fe7c6f01a003"
}
Environment data
PS /home/cassey> $PSVersionTable
Name Value
---- -----
PSVersion 7.0.3
PSEdition Core
GitCommitId 7.0.3
OS Linux 4.15.0-1096-azure #106~16.04.1-Ubuntu SMP Thu Sep 10 18:51:54 UTC 2020
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module versions
PS /home/cassey> Get-Module -ListAvailable
Directory: /usr/local/share/powershell/Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 4.7.0 Az Core,Desk
Script 1.9.4 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave…}
Script 1.1.1 Az.Advisor Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration…}
Script 1.3.0 Az.Aks Core,Desk {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential…}
Script 1.1.4 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer…}
Script 2.1.0 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion…}
Script 1.1.0 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Update-AzApplicationInsights…}
Script 1.4.0 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationDscNodeConfiguration…}
Script 3.1.0 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount…}
Script 1.0.3 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget…}
Script 1.4.3 Az.Cdn Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile…}
Script 1.6.0 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesAccountType…}
Script 4.4.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet…}
Script 1.0.3 Az.ContainerInstance Core,Desk {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInstanceLog}
Script 1.1.1 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry…}
Script 1.1.0 Az.DataBoxEdge Core,Desk {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice…}
Script 1.10.1 Az.DataFactory Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2…}
Script 1.0.2 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCredential…}
Script 1.2.8 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider…}
Script 1.0.0 Az.DataShare Core,Desk {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShare…}
Script 1.1.0 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-AzDeploymentManagerArtifactSource…}
Script 1.0.0 Az.DesktopVirtualization Core,Desk {Disconnect-AzWvdUserSession, Get-AzWvdApplication, Get-AzWvdApplicationGroup, Get-AzWvdDesktop…}
Script 1.0.2 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy…}
Script 1.1.2 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet…}
Script 1.3.0 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey…}
Script 1.6.0 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace…}
Script 1.6.1 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor…}
Script 1.0.2 Az.Functions Core,Desk {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting…}
Script 0.10.8 Az.GuestConfiguration Core,Desk {Get-AzVMGuestPolicyStatus, Get-AzVMGuestPolicyStatusHistory}
Script 3.6.0 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition…}
Script 1.1.0 Az.HealthcareApis Core,Desk {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get-AzHealthcareApisService}
Script 2.5.0 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob…}
Script 2.2.0 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation…}
Script 1.0.0 Az.Kusto Core,Desk {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabaseConfiguration, Get-AzKustoCluster…}
Script 1.3.2 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegrationAccountCallbackUrl…}
Script 1.1.3 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan…}
Script 1.1.0 Az.Maintenance Core,Desk {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenanceUpdate…}
Script 1.1.0 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDefinition…}
Script 1.0.2 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script 1.1.1 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability…}
Script 2.1.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile…}
Script 3.4.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzApplicationGatewayAuthenticationCertificate…}
Script 1.1.1 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential…}
Script 2.3.0 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsightsIISLogCollection…}
Script 1.3.1 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation…}
Script 1.1.2 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerBIWorkspace…}
Script 1.0.3 Az.PrivateDns Core,Desk {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone…}
Script 2.12.1 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault…}
Script 1.2.1 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule…}
Script 1.0.3 Az.Relay Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace…}
Script 2.5.1 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment…}
Script 1.4.1 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace…}
Script 2.2.0 Az.ServiceFabric Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFabricNode, Add-AzServiceFabricNodeType…}
Script 1.2.0 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey…}
Script 2.10.0 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseUpgradeHint…}
Script 1.1.0 Az.SqlVirtualMachine Core,Desk {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM…}
Script 2.6.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey…}
Script 1.3.0 Az.StorageSync Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Set-AzStorageSyncService…}
Script 1.0.1 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAnalyticsFunction, Remove-AzStreamAnalyticsFunction…}
Script 1.0.0 Az.Support Core,Desk {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupportTicketCommunication…}
Script 1.0.4 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficManagerCustomHeaderFromProfile…}
Script 1.11.0 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan…}
Script 0.0.0.10 AzureAD.Standard.Preview Desk {Get-AzureADDeviceRegisteredUser, Get-AzureADOAuth2PermissionGrant, Remove-AzureADContactManager, Remove-AzureADApplicationProxyConnectorGroup…}
Script 0.9.3 AzurePSDrive Desk
Script 17.0.4716… EXOPSSessionConnector Desk Connect-EXOPSSession
Binary 0.1.1 Microsoft.PowerShell.UnixCompleters Core {Import-UnixCompleters, Remove-UnixCompleters, Set-UnixCompleter}
Manifest 1.0.840 MicrosoftPowerBIMgmt Desk
Binary 1.0.840 MicrosoftPowerBIMgmt.Admin Desk {Add-PowerBIEncryptionKey, Get-PowerBIEncryptionKey, Get-PowerBIWorkspaceEncryptionStatus, Switch-PowerBIEncryptionKey…}
Binary 1.0.840 MicrosoftPowerBIMgmt.Capacities Desk Get-PowerBICapacity
Binary 1.0.840 MicrosoftPowerBIMgmt.Data Desk {Add-PowerBIDataset, Set-PowerBITable, New-PowerBIDataset, New-PowerBITable…}
Binary 1.0.840 MicrosoftPowerBIMgmt.Profile Desk {Connect-PowerBIServiceAccount, Disconnect-PowerBIServiceAccount, Invoke-PowerBIRestMethod, Get-PowerBIAccessToken…}
Binary 1.0.840 MicrosoftPowerBIMgmt.Reports Desk {Get-PowerBIReport, New-PowerBIReport, Export-PowerBIReport, Get-PowerBIDashboard…}
Binary 1.0.840 MicrosoftPowerBIMgmt.Workspaces Desk {Get-PowerBIWorkspace, Get-PowerBIWorkspaceMigrationStatus, Add-PowerBIWorkspaceUser, Remove-PowerBIWorkspaceUser…}
Binary 1.1.4 MicrosoftTeams Core,Desk {Add-TeamUser, Connect-MicrosoftTeams, Disconnect-MicrosoftTeams, Get-CsPolicyPackage…}
Script 0.9.3 PSCloudShellUtility Desk {Enter-AzVM, Get-AzCommand, Invoke-AzVMCommand, Enable-AzVMPSRemoting…}
Binary 0.8.1 SHiPS Desk
Script 21.1.18226 SqlServer Desk {Add-RoleMember, Add-SqlAvailabilityDatabase, Add-SqlAvailabilityGroupListenerStaticIp, Add-SqlAzureAuthenticationContext…}
Directory: /opt/microsoft/powershell/7/Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Manifest 1.2.5 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expand-Archive}
Manifest 7.0.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop-Transcript}
Manifest 7.0.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path…}
Manifest 7.0.0.0 Microsoft.PowerShell.Security Core {Get-Credential, Get-ExecutionPolicy, Set-ExecutionPolicy, ConvertFrom-SecureString…}
Manifest 7.0.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alias, Import-Alias, New-Alias…}
Script 1.4.7 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script 2.2.4.1 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
Script 2.0.5 PSDesiredStateConfiguration Core {Configuration, New-DscChecksum, Get-DscResource, Invoke-DscResource}
Script 2.0.2 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption…}
Binary 2.0.3 ThreadJob Desk Start-ThreadJob
CLI (This is the one that errors):
Debug output
PowerShell
PS /home/cassey> $snapshotconfig = New-AzSnapshotConfig -Location 'North Central US' -DiskSizeGB 5 -AccountType Standard_LRS -OsType Windows -CreateOption Empty
DEBUG: 7:47:49 PM - NewAzureRmSnapshotConfigCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 7:47:49 PM - using account id 'MSI@50342'...
DEBUG: AzureQoSEvent: CommandName - New-AzSnapshotConfig; IsSuccess - True; Duration - 00:00:00.0117469;
DEBUG: Finish sending metric.
DEBUG: 7:47:49 PM - NewAzureRmSnapshotConfigCommand end processing.
PS /home/cassey> New-AzSnapshot -ResourceGroupName "snapshotTestVM" -SnapshotName 'test1' -Snapshot $snapshotconfig
DEBUG: 7:48:04 PM - NewAzureRmSnapshot begin processing with ParameterSet 'DefaultParameter'.
DEBUG: 7:48:04 PM - using account id 'MSI@50342'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '72f988bf-86f1-41af-91ab-2d7cd011db47'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1?api-version=2020-05-01
Headers:
x-ms-client-request-id : c3cf3e72-26a4-44a5-8ec1-8e546143ca74
Accept-Language : en-US
Body:
{
"sku": {
"name": "Standard_LRS"
},
"properties": {
"osType": "Windows",
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 5,
"incremental": false
},
"location": "North Central US",
"tags": {}
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Accepted
Headers:
Cache-Control : no-cache
Pragma : no-cache
Location : https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/providers/Microsoft.Compute/locations/northcentralus/DiskOperations/378bd90a-7243-4028-b58b-d564b6176fba?monitor=true&api-version=2020-05-01
Retry-After : 2
Azure-AsyncOperation : https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/providers/Microsoft.Compute/locations/northcentralus/DiskOperations/378bd90a-7243-4028-b58b-d564b6176fba?api-version=2020-05-01
x-ms-ratelimit-remaining-resource: Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7999
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : ac22600c-b195-425d-aed1-0a6646aaa3bd_132451832122051513
x-ms-request-id : 378bd90a-7243-4028-b58b-d564b6176fba
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id : a3db57e1-41aa-40ff-a40b-21a31260a6af
x-ms-routing-request-id : EASTUS:20200923T194807Z:a3db57e1-41aa-40ff-a40b-21a31260a6af
X-Content-Type-Options : nosniff
Date : Wed, 23 Sep 2020 19:48:06 GMT
Body:
{
"location": "North Central US",
"tags": {},
"sku": {
"name": "Standard_LRS"
},
"properties": {
"osType": "Windows",
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 5,
"incremental": false,
"provisioningState": "Updating",
"isArmResource": true
}
}
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/providers/Microsoft.Compute/locations/northcentralus/DiskOperations/378bd90a-7243-4028-b58b-d564b6176fba?api-version=2020-05-01
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399999
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : ac22600c-b195-425d-aed1-0a6646aaa3bd_132451832122051513
x-ms-request-id : 4b27684e-e7e4-4882-b631-bab33617e57e
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-correlation-request-id : b12aac0d-ead7-4710-8a5a-e46387ddc9c7
x-ms-routing-request-id : EASTUS:20200923T194809Z:b12aac0d-ead7-4710-8a5a-e46387ddc9c7
X-Content-Type-Options : nosniff
Date : Wed, 23 Sep 2020 19:48:08 GMT
Body:
{
"startTime": "2020-09-23T19:48:06.9109747+00:00",
"endTime": "2020-09-23T19:48:07.3329098+00:00",
"status": "Succeeded",
"properties": {
"output": {
"name": "test1",
"id": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1",
"type": "Microsoft.Compute/snapshots",
"location": "northcentralus",
"tags": {},
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"osType": "Windows",
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 5,
"encryption": {
"type": "EncryptionAtRestWithPlatformKey"
},
"incremental": false,
"timeCreated": "2020-09-23T19:48:06.9266419+00:00",
"provisioningState": "Succeeded",
"diskState": "Unattached",
"diskSizeBytes": 5368709120,
"uniqueId": "7f8cc5ce-aa27-461f-a1ce-ba501f5aec3d",
"networkAccessPolicy": "AllowAll"
}
}
},
"name": "378bd90a-7243-4028-b58b-d564b6176fba"
}
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1?api-version=2020-05-01
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;4999,Microsoft.Compute/LowCostGet30Min;39999
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : ac22600c-b195-425d-aed1-0a6646aaa3bd_132451832122051513
x-ms-request-id : 4463e06b-2cb3-4985-9b78-aa2bdf1881ef
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-correlation-request-id : bbb50a8a-ceb9-4062-b07f-cf680922808f
x-ms-routing-request-id : EASTUS:20200923T194809Z:bbb50a8a-ceb9-4062-b07f-cf680922808f
X-Content-Type-Options : nosniff
Date : Wed, 23 Sep 2020 19:48:08 GMT
Body:
{
"name": "test1",
"id": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1",
"type": "Microsoft.Compute/snapshots",
"location": "northcentralus",
"tags": {},
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"osType": "Windows",
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 5,
"encryption": {
"type": "EncryptionAtRestWithPlatformKey"
},
"incremental": false,
"timeCreated": "2020-09-23T19:48:06.9266419+00:00",
"provisioningState": "Succeeded",
"diskState": "Unattached",
"diskSizeBytes": 5368709120,
"uniqueId": "7f8cc5ce-aa27-461f-a1ce-ba501f5aec3d",
"networkAccessPolicy": "AllowAll"
}
}
ResourceGroupName : snapshotTestVM
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 9/23/2020 7:48:06 PM
OsType : Windows
HyperVGeneration :
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 5
DiskSizeBytes : 5368709120
UniqueId : 7f8cc5ce-aa27-461f-a1ce-ba501f5aec3d
EncryptionSettingsCollection :
ProvisioningState : Succeeded
Incremental : False
Encryption : Microsoft.Azure.Management.Compute.Models.Encryption
Id : /subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1
Name : test1
Type : Microsoft.Compute/snapshots
Location : northcentralus
Tags : {}
NetworkAccessPolicy : AllowAll
DiskAccessId :
DEBUG: AzureQoSEvent: CommandName - New-AzSnapshot; IsSuccess - True; Duration - 00:00:04.4496820;
DEBUG: Finish sending metric.
DEBUG: 7:48:09 PM - NewAzureRmSnapshot end processing.
PS /home/cassey> New-AzSnapshot -ResourceGroupName "snapshotTestVM" -SnapshotName 'test1' -Snapshot $snapshotconfig
DEBUG: 7:48:13 PM - NewAzureRmSnapshot begin processing with ParameterSet 'DefaultParameter'.
DEBUG: 7:48:13 PM - using account id 'MSI@50342'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '72f988bf-86f1-41af-91ab-2d7cd011db47'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1?api-version=2020-05-01
Headers:
x-ms-client-request-id : 71307c88-9fc9-4d29-a256-04b62237dd18
Accept-Language : en-US
Body:
{
"sku": {
"name": "Standard_LRS"
},
"properties": {
"osType": "Windows",
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 5,
"incremental": false
},
"location": "North Central US",
"tags": {}
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Accepted
Headers:
Cache-Control : no-cache
Pragma : no-cache
Location : https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/providers/Microsoft.Compute/locations/northcentralus/DiskOperations/c165aeb1-22a8-4d02-a67c-fa5fb47ae609?monitor=true&api-version=2020-05-01
Retry-After : 2
Azure-AsyncOperation : https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/providers/Microsoft.Compute/locations/northcentralus/DiskOperations/c165aeb1-22a8-4d02-a67c-fa5fb47ae609?api-version=2020-05-01
x-ms-ratelimit-remaining-resource: Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;998,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7998
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : ac22600c-b195-425d-aed1-0a6646aaa3bd_132451832122051513
x-ms-request-id : c165aeb1-22a8-4d02-a67c-fa5fb47ae609
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id : 327db702-19bf-4c6b-8310-4ba434345045
x-ms-routing-request-id : EASTUS:20200923T194814Z:327db702-19bf-4c6b-8310-4ba434345045
X-Content-Type-Options : nosniff
Date : Wed, 23 Sep 2020 19:48:14 GMT
Body:
{
"location": "North Central US",
"tags": {},
"sku": {
"name": "Standard_LRS"
},
"properties": {
"osType": "Windows",
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 5,
"incremental": false,
"provisioningState": "Updating",
"isArmResource": true,
"faultDomain": 0
}
}
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/providers/Microsoft.Compute/locations/northcentralus/DiskOperations/c165aeb1-22a8-4d02-a67c-fa5fb47ae609?api-version=2020-05-01
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399997
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : ac22600c-b195-425d-aed1-0a6646aaa3bd_132451832122051513
x-ms-request-id : d6e08ded-5c06-48ac-9154-6de14e71b809
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-correlation-request-id : 86b1d1e3-6292-4e35-b317-19e5d2a7c933
x-ms-routing-request-id : EASTUS:20200923T194816Z:86b1d1e3-6292-4e35-b317-19e5d2a7c933
X-Content-Type-Options : nosniff
Date : Wed, 23 Sep 2020 19:48:16 GMT
Body:
{
"startTime": "2020-09-23T19:48:14.0987783+00:00",
"endTime": "2020-09-23T19:48:14.2862817+00:00",
"status": "Succeeded",
"properties": {
"output": {
"name": "test1",
"id": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1",
"type": "Microsoft.Compute/snapshots",
"location": "northcentralus",
"tags": {},
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"osType": "Windows",
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 5,
"encryption": {
"type": "EncryptionAtRestWithPlatformKey"
},
"incremental": false,
"timeCreated": "2020-09-23T19:48:06.9266419+00:00",
"provisioningState": "Succeeded",
"diskState": "Unattached",
"diskSizeBytes": 5368709120,
"uniqueId": "7f8cc5ce-aa27-461f-a1ce-ba501f5aec3d",
"networkAccessPolicy": "AllowAll"
}
}
},
"name": "c165aeb1-22a8-4d02-a67c-fa5fb47ae609"
}
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1?api-version=2020-05-01
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;4996,Microsoft.Compute/LowCostGet30Min;39996
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : ac22600c-b195-425d-aed1-0a6646aaa3bd_132451832122051513
x-ms-request-id : d5bef3be-38e0-4e54-81a2-2dc3062bf8df
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11997
x-ms-correlation-request-id : fc5a9010-eddb-404a-b3d4-b90dae924e2b
x-ms-routing-request-id : EASTUS:20200923T194816Z:fc5a9010-eddb-404a-b3d4-b90dae924e2b
X-Content-Type-Options : nosniff
Date : Wed, 23 Sep 2020 19:48:16 GMT
Body:
{
"name": "test1",
"id": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1",
"type": "Microsoft.Compute/snapshots",
"location": "northcentralus",
"tags": {},
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"osType": "Windows",
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 5,
"encryption": {
"type": "EncryptionAtRestWithPlatformKey"
},
"incremental": false,
"timeCreated": "2020-09-23T19:48:06.9266419+00:00",
"provisioningState": "Succeeded",
"diskState": "Unattached",
"diskSizeBytes": 5368709120,
"uniqueId": "7f8cc5ce-aa27-461f-a1ce-ba501f5aec3d",
"networkAccessPolicy": "AllowAll"
}
}
ResourceGroupName : snapshotTestVM
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 9/23/2020 7:48:06 PM
OsType : Windows
HyperVGeneration :
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 5
DiskSizeBytes : 5368709120
UniqueId : 7f8cc5ce-aa27-461f-a1ce-ba501f5aec3d
EncryptionSettingsCollection :
ProvisioningState : Succeeded
Incremental : False
Encryption : Microsoft.Azure.Management.Compute.Models.Encryption
Id : /subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1
Name : test1
Type : Microsoft.Compute/snapshots
Location : northcentralus
Tags : {}
NetworkAccessPolicy : AllowAll
DiskAccessId :
DEBUG: AzureQoSEvent: CommandName - New-AzSnapshot; IsSuccess - True; Duration - 00:00:02.6937535;
DEBUG: Finish sending metric.
DEBUG: 7:48:16 PM - NewAzureRmSnapshot end processing.
CLI (Gets the error sometimes and others it doesn't):
This time I did not get an error
cassey@Azure:~$ az snapshot create -g 'snapshotTestVM' -n 'test1' --source '/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/SNAPSHOTTESTVM/providers/Microsoft.Compute/disks/snaoshotTestVM_OsDisk_1_c166f9289a4340fa9d872e887262cf2e'
{- Finished ..
"creationData": {
"createOption": "Copy",
"galleryImageReference": null,
"imageReference": null,
"sourceResourceId": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/SNAPSHOTTESTVM/providers/Microsoft.Compute/disks/snaoshotTestVM_OsDisk_1_c166f9289a4340fa9d872e887262cf2e",
"sourceUniqueId": "c166f928-9a43-40fa-9d87-2e887262cf2e",
"sourceUri": null,
"storageAccountId": null,
"uploadSizeBytes": null
},
"diskAccessId": null,
"diskSizeBytes": 136367308800,
"diskSizeGb": 127,
"encryption": {
"diskEncryptionSetId": null,
"type": "EncryptionAtRestWithPlatformKey"
},
"encryptionSettingsCollection": null,
"hyperVgeneration": "V1",
"id": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1",
"incremental": false,
"location": "northcentralus",
"managedBy": null,
"name": "test1",
"networkAccessPolicy": "AllowAll",
"osType": "Windows",
"provisioningState": "Succeeded",
"resourceGroup": "snapshotTestVM",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"tags": {},
"timeCreated": "2020-09-23T20:22:36.275508+00:00",
"type": "Microsoft.Compute/snapshots",
"uniqueId": "4276066a-85a8-4f8c-bb86-fe7c6f01a003"
}
cassey@Azure:~$ az snapshot create -g 'snapshotTestVM' -n 'test1' --source '/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/SNAPSHOTTESTVM/providers/Microsoft.Compute/disks/snaoshotTestVM_OsDisk_1_c166f9289a4340fa9d872e887262cf2e'
{- Finished ..
"creationData": {
"createOption": "Copy",
"galleryImageReference": null,
"imageReference": null,
"sourceResourceId": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/SNAPSHOTTESTVM/providers/Microsoft.Compute/disks/snaoshotTestVM_OsDisk_1_c166f9289a4340fa9d872e887262cf2e",
"sourceUniqueId": "c166f928-9a43-40fa-9d87-2e887262cf2e",
"sourceUri": null,
"storageAccountId": null,
"uploadSizeBytes": null
},
"diskAccessId": null,
"diskSizeBytes": 136367308800,
"diskSizeGb": 127,
"encryption": {
"diskEncryptionSetId": null,
"type": "EncryptionAtRestWithPlatformKey"
},
"encryptionSettingsCollection": null,
"hyperVgeneration": "V1",
"id": "/subscriptions/ef8a60e7-3e60-428c-a392-c04eaaaf4f34/resourceGroups/snapshotTestVM/providers/Microsoft.Compute/snapshots/test1",
"incremental": false,
"location": "northcentralus",
"managedBy": null,
"name": "test1",
"networkAccessPolicy": "AllowAll",
"osType": "Windows",
"provisioningState": "Succeeded",
"resourceGroup": "snapshotTestVM",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"tags": {},
"timeCreated": "2020-09-23T20:22:36.275508+00:00",
"type": "Microsoft.Compute/snapshots",
"uniqueId": "4276066a-85a8-4f8c-bb86-fe7c6f01a003"
}
Error output
PS /home/cassey> Resolve-AzError
DEBUG: 9:59:37 PM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 9:59:37 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: CommandName - Resolve-AzError; IsSuccess - True; Duration - 00:00:00.0051153;
DEBUG: Finish sending metric.
DEBUG: 9:59:37 PM - ResolveError end processing
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv.
@bilaakpan-ms, @avirishuv, could you take a look whether it is expected behavior?
I also noticed this. This is very dangerous behaviour. I almost lost a VM when I recreated it from snapshot. Existing snapshot was there with the same name and I didn't get any error/warning when I took a snapshot.
cc @Vaibhav-Agar who is going to take a look at this.
Just to update - the dev team has been looped in to implement a fix. I will try to provide an update soon on an ETA.
The Dev team is working on the fix. It is currently out for review.
The fix has been merged, and will be released to customers in the next PS release, on 12/29.
The fix has been released as part of the Azure Powershell 5.3.0 release.