Issue copying managed disk incremental snapshot to page blob
Description
I am trying to copy incremental snapshots of a managed disk to a page blob using Start-AzStorageBlobIncrementalCopy. This fails with error 'The specified operation is not allowed on an incremental copy blob. HTTP Status Code: 409 - HTTP Error Message: The specified operation is not allowed on an incremental copy blob.'
The goal is to be able to create snapshots of one managed disks and copy these to a page blob in a storage account in a different region for archival purposes because of demands from Norwegian government.
Steps to reproduce
Create snapshot
[Microsoft.Azure.Commands.Compute.Automation.Models.PSDiskList] $ManagedDisk = Get-AzDisk -DiskName $ManagedDiskName
[Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshotList[]] $Snapshots = Get-AzSnapshot | Where-Object {
$_.CreationData.SourceResourceId -eq $ManagedDisk.Id -and `
$_.CreationData.SourceUniqueId -eq $ManagedDisk.UniqueId
}
try {
[int] $Counter = ($Snapshots | Sort-Object -Property 'TimeCreated' | Select-Object -Last 1 -ExpandProperty Name).Split('-')[-1]
} catch {
[int] $Counter = 0
}
$Counter++
[string] $SnapshotName = ('snapshot-' + $ManagedDisk.Name + $('-{0:d3}' -f $Counter))
[hashtable] $SnapshotConfigParams = @{
SourceUri = $ManagedDisk.Id
Location = $Location
CreateOption = 'copy'
Incremental = $true
}
[Microsoft.Azure.Commands.Compute.Automation.Models.PSSnapshot] $SnapshotConfig = New-AzSnapshotConfig @SnapshotConfigParams
[hashtable] $SnapshotParams = @{
Snapshot = $SnapshotConfig
SnapshotName = $SnapshotName
ResourceGroupName = $ResourceGroup
}
New-AzSnapshot @SnapshotParams
Copy incremental snapshot to page blob
[Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineList] $VirtualMachine = Get-AzVM -Name $VirtualMachineName
[string] $VirtualMachineSnapshotName = $SnapshotName
[string] $DestinationBlobName = $VirtualMachine.StorageProfile.DataDisks[0].Name + '.vhd'
[hashtable] $DestinationStorageAccountKeyParams = @{
Name = $DestinationStorageAccountName
ResourceGroupName = $DestinationResourceGroup
}
[Microsoft.Azure.Management.Storage.Models.StorageAccountKey[]] $DestinationStorageAccountKey = Get-AzStorageAccountKey @DestinationStorageAccountKeyParams
[hashtable] $DestinationStorageContextParams = @{
StorageAccountName = $DestinationStorageAccountName
StorageAccountKey = ($DestinationStorageAccountKey | Where-Object Permissions -eq 'Full' | Select-Object -First 1).Value
}
[Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext] $DestinationStorageContext = New-AzStorageContext @DestinationStorageContextParams
if (-not (Get-AzStorageContainer -Context $DestinationStorageContext | Where-Object Name -eq $DestinationStorageContainerName)) {
[hashtable] $DestinationStorageContainerParams = @{
Name = $VirtualMachineStorageContainerName
Context = $DestinationStorageContext
Permission = 'Off'
}
New-AzStorageContainer @DestinationStorageContainerParams
}
[hashtable] $GrantSnapshotAccessParams = @{
ResourceGroupName = $ResourceGroup
SnapshotName = $VirtualMachineSnapshotName
DurationInSecond = $SnapshotExpiryDuration
Access = 'Read'
}
[Microsoft.Azure.Commands.Compute.Automation.Models.PSAccessUri] $GrantSnapshotAccess = Grant-AzSnapshotAccess @GrantSnapshotAccessParams
[hashtable] $BlobCopyParams = @{
AbsoluteUri = $GrantSnapshotAccess.AccessSAS
DestContainer = $DestinationStorageContainerName
DestContext = $DestinationStorageContext
DestBlob = $DestinationBlobName
}
Start-AzStorageBlobIncrementalCopy @BlobCopyParams
Environment data
Name Value
---- -----
PSVersion 7.0.0
PSEdition Core
GitCommitId 7.0.0
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module versions
Directory: C:\Users\lajensen\Documents\PowerShell\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 3.5.0 Az Core,Desk
Script 1.7.3 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosa…
Script 1.7.2 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosa…
Script 1.1.1 Az.Advisor Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation, Get-Az…
Script 1.0.3 Az.Aks Core,Desk {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksCredential…}
Script 1.1.2 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Rem…
Script 1.3.4 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion, Add-A…
Script 1.0.3 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Set-AzApplicatio…
Script 1.3.6 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRe…
Script 2.0.2 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount…}
Script 1.0.2 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget…}
Script 1.4.2 Az.Cdn Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile…}
Script 1.2.3 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku…
Script 3.5.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-AzContainerRegi…
Script 1.1.0 Az.DataBoxEdge Core,Desk {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice…}
Script 1.6.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-AzDataLakeAnalyt…
Script 1.2.6 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStor…
Script 1.1.0 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManage…
Script 1.0.2 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPe…
Script 1.1.2 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet…}
Script 1.2.3 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey…}
Script 1.4.3 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespac…
Script 1.4.0 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor…}
Script 3.0.3 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreaming…
Script 1.0.1 Az.HealthcareApis Core,Desk {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get-AzHeal…
Script 2.1.0 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob…}
Script 1.5.1 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-Az…
Script 1.3.2 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchCo…
Script 1.1.3 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, R…
Script 1.0.2 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment…
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-AzMediaServiceNameA…
Script 1.6.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile…}
Script 2.3.1 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate…
Script 1.1.1 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzN…
Script 1.3.4 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, D…
Script 1.2.0 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation…}
Script 1.1.1 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollect…
Script 1.0.2 Az.PrivateDns Core,Desk {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone…}
Script 2.7.0 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettin…
Script 1.2.1 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-…
Script 1.0.3 Az.Relay Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace…}
Script 0.7.7 Az.ResourceGraph Core,Desk Search-AzGraph
Script 1.11.0 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-AzServiceBus…
Script 2.0.1 Az.ServiceFabric Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFabricNode…
Script 1.1.1 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey…}
Script 2.3.0 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-…
Script 1.1.0 Az.SqlVirtualMachine Core,Desk {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM…}
Script 1.13.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey…}
Script 1.12.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey…}
Script 1.2.3 Az.StorageSync Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Remove-A…
Script 1.0.1 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAnalytics…
Script 1.0.3 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzT…
Script 1.6.0 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan…}
Script 2.0.11 BuildHelpers Desk {Add-TestResultToAppveyor, Export-Metadata, Find-NugetPackage, Get-BuildEnvironment…}
Binary 0.2.1 alpha1 Microsoft.PowerShell.SecretManagem… Core {Register-SecretVault, Unregister-SecretVault, Get-SecretVault, Set-Secret…}
Binary 0.2.0 alpha1 Microsoft.PowerShell.SecretsManage… Core {Register-SecretsVault, Unregister-SecretsVault, Get-SecretsVault, Add-Secret…}
Script 2.0.1 Passphraser Desk New-Passphrase
Script 4.10.1 Pester Desk {Describe, Context, It, Should…}
Script 0.14.0 platyPS Desk {New-MarkdownHelp, Get-MarkdownMetadata, New-ExternalHelp, New-YamlHelp…}
Script 0.7.3 posh-git Desk {Invoke-NullCoalescing, Add-PoshGitToProfile, Get-PromptPath, Write-GitStatus…}
Script 0.4.1 powershell-yaml Desk {ConvertTo-Yaml, ConvertFrom-Yaml, cfy, cty}
Script 4.9.0 psake Desk {Invoke-psake, Invoke-Task, Get-PSakeScriptTasks, Task…}
Script 1.0.0 WindowsCompatibility Core {Initialize-WinSession, Add-WinFunction, Invoke-WinCommand, Get-WinModule…}
Script 1.13.0.0 xDSCResourceDesigner Desk {New-xDscResourceProperty, New-xDscResource, Update-xDscResource, Test-xDscResource…}
Directory: C:\program files\powershell\7\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Manifest 7.0.0.0 CimCmdlets Core {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession…}
Manifest 1.2.5 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expand-Archive}
Manifest 7.0.0.0 Microsoft.PowerShell.Diagnostics Core {Get-WinEvent, New-WinEvent, Get-Counter}
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, Get-Clipboard, Set-Clipboard…}
Manifest 7.0.0.0 Microsoft.PowerShell.Security Core {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential…}
Manifest 7.0.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alias, Import-Alias, New-Alias…}
Manifest 7.0.0.0 Microsoft.WSMan.Management Core {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig…}
Script 1.4.6 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script 2.2.3 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
Script 2.0.5 PSDesiredStateConfiguration Core {Configuration, New-DscChecksum, Get-DscResource, Invoke-DscResource}
Script 7.0.0.0 PSDiagnostics Core {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace…}
Script 2.0.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOptio…
Binary 2.0.3 ThreadJob Desk Start-ThreadJob
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 1.3.0.0 HP.ClientManagement Desk {getLockedStreamForWrite, Get-HPBIOSPowerOnPasswordIsSet, getBiosSettingInterface, checkSignature…}
Script 1.3.0.0 HP.Firmware Desk {getLogEntry, Get-EFIPartitionPath, createTemporaryDirectory, Write-HPFirmwarePasswordFile…}
Script 1.3.0.0 HP.LibraryMaintenance Desk {Update-CMSL, Get-CMSLInstallationInformation, Uninstall-CMSL, Get-CMSLInstaller…}
Script 1.3.0.0 HP.Private Desk {cvaContainsOperatingSystem, allowedHttpsProtocols, downloadFile, checkSignature…}
Script 1.3.0.0 HP.Repo Desk {expandCab, isBootDriveBitlockerEncrypted, Get-HPFirmwareAuditLog, getCurrentOsver…}
Script 1.3.0.0 HP.Sinks Desk {Send-ToEventLog, Send-ToSyslog, Register-EventLogSink, Unregister-EventLogSink}
Script 1.3.0.0 HP.Softpaq Desk {getLockedStreamForWrite, decodeLogData, removeInvalidCharacters, Get-HPFirmwareBootLogoIsActive…}
Script 1.3.0.0 HP.Utility Desk Test-IsElevatedAdmin
Script 1.0.1 Microsoft.PowerShell.Operation.Val… Desk {Get-OperationValidation, Invoke-OperationValidation}
Binary 1.0.0.1 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script 3.4.0 Pester Desk {Describe, Context, It, Should…}
Script 1.0.0.1 PowerShellGet Desk {Install-Module, Find-Module, Save-Module, Update-Module…}
Script 2.0.0 beta2 PSReadline Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOptio…
Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Manifest 1.0.1.0 ActiveDirectory Core,Desk {Add-ADCentralAccessPolicyMember, Add-ADComputerServiceAccount, Add-ADDomainControllerPasswordReplica…
Manifest 1.0.0.0 AppBackgroundTask Core,Desk {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBackgroundTask…
Manifest 2.0.1.0 Appx Core,Desk {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage…}
Script 1.0.0.0 AssignedAccess Core,Desk {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess}
Manifest 1.0.0.0 BitLocker Core,Desk {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector…}
Manifest 1.0.0.0 BranchCache Core,Desk {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading…}
Manifest 1.0 Defender Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference…}
Manifest 1.0.2.0 DeliveryOptimization Core,Desk {Delete-DeliveryOptimizationCache, Get-DeliveryOptimizationStatus, Set-DeliveryOptimizationStatus, Ge…
Manifest 1.0 DFSN Core,Desk {Get-DfsnRoot, Remove-DfsnRoot, Set-DfsnRoot, New-DfsnRoot…}
Manifest 1.0.0.0 DirectAccessClientComponents Core,Desk {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExperienceConfi…
Script 3.0 Dism Core,Desk {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage…}
Manifest 1.0.0.0 DnsClient Core,Desk {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache…}
Manifest 2.0.0.0 DnsServer Core,Desk {Add-DnsServerConditionalForwarderZone, Add-DnsServerDirectoryPartition, Add-DnsServerForwarder, Add-…
Manifest 1.0.0.0 EventTracingManagement Core,Desk {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession…}
Manifest 1.0.0.0 HgsClient Core,Desk {Get-HgsAttestationBaselinePolicy, Get-HgsClientConfiguration, Test-HgsClientConfiguration, Set-HgsCl…
Manifest 1.0.0.0 HgsDiagnostics Core,Desk {New-HgsTraceTarget, Get-HgsTrace, Get-HgsTraceFileData, Test-HgsTraceTarget}
Manifest 2.0.0.0 International Core,Desk {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation, Set-WinHo…
Manifest 3.0.0.0 Microsoft.PowerShell.Diagnostics Core,Desk {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter…}
Manifest 1.0.0.0 Microsoft.PowerShell.LocalAccounts Core,Desk {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup…}
Manifest 3.1.0.0 Microsoft.PowerShell.Management Core,Desk {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path…}
Manifest 1.0 MMAgent Core,Desk {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent…}
Manifest 2.0.0.0 NetAdapter Core,Desk {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable-NetAdapter…
Manifest 1.0.0.0 NetConnection Core,Desk {Get-NetConnectionProfile, Set-NetConnectionProfile}
Manifest 1.0.0.0 NetEventPacketCapture Core,Desk {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession…}
Manifest 2.0.0.0 NetLbfo Core,Desk {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember…}
Manifest 1.0.0.0 NetNat Core,Desk {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession…}
Manifest 2.0.0.0 NetQos Core,Desk {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy}
Manifest 2.0.0.0 NetSecurity Core,Desk {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-NetIPsecQuickM…
Manifest 1.0.0.0 NetSwitchTeam Core,Desk {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam…}
Manifest 1.0.0.0 NetTCPIP Core,Desk {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol…}
Manifest 1.0.0.0 NetworkConnectivityStatus Core,Desk {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-NCSIPolicyCo…
Manifest 1.0.0.0 NetworkSwitchManager Core,Desk {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEthernetPort, …
Manifest 1.0.0.0 NetworkTransition Core,Desk {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfile, Disable…
Manifest 1.0 NFS Core,Desk {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStore, New-NfsMappedIdentity…}
Manifest 1.0.0.0 PcsvDevice Core,Desk {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice…}
Manifest 1.0.0.0 PnpDevice Core,Desk {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice}
Manifest 1.1 PrintManagement Core,Desk {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration…}
Binary 1.0.11 ProcessMitigations Core,Desk {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy}
Manifest 1.0.0.0 ScheduledTasks Core,Desk {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask…}
Manifest 2.0.0.0 SecureBoot Core,Desk {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI…}
Manifest 1.0.0.0 ShieldedVMDataFile Core,Desk {Import-ShieldingDataFile, New-ShieldingDataFile, New-VolumeIDQualifier, Save-VolumeSignatureCatalog…}
Manifest 1.0.0.0 ShieldedVMTemplate Core,Desk {Protect-TemplateDisk, Initialize-VMShieldingHelperVHD}
Manifest 2.0.0.0 SmbShare Core,Desk {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess…}
Manifest 2.0.0.0 SmbWitness Core,Desk {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw…}
Manifest 1.0.0.0 StartLayout Core,Desk {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, Get-StartApps}
Manifest 2.0.0.0 Storage Core,Desk {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultDomain…}
Manifest 1.0.0.0 StorageQoS Core,Desk {Get-StorageQoSPolicy, Get-StorageQoSPolicyStore, Set-StorageQoSPolicyStore, Remove-StorageQoSPolicy…}
Manifest 1.0.0.0 TroubleshootingPack Core,Desk {Get-TroubleshootingPack, Invoke-TroubleshootingPack}
Manifest 2.0.0.0 TrustedPlatformModule Core,Desk {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm…}
Binary 2.1.639.0 UEV Core,Desk
Manifest 2.0.0.0 VpnClient Core,Desk {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection…}
Manifest 1.0.0.0 Wdac Core,Desk {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn…}
Manifest 2.0.0.0 Whea Core,Desk {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy}
Manifest 1.0.0.0 WindowsDeveloperLicense Core,Desk {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLicenseRegistr…
Script 1.0 WindowsErrorReporting Core,Desk {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting}
Manifest 1.0.0.0 WindowsSearch Core,Desk {Get-WindowsSearchSetting, Set-WindowsSearchSetting}
Manifest 1.0.0.0 WindowsUpdate Core,Desk Get-WindowsUpdateLog
Manifest 1.0.0.2 WindowsUpdateProvider Core,Desk {Get-WUAVersion, Get-WULastInstallationDate, Get-WULastScanSuccessDate, Get-WUIsPendingReboot…}
Directory: C:\Users\lajensen\.vscode\extensions\ms-vscode.powershell-2020.3.0\modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 1.1.3 Plaster Desk {Invoke-Plaster, New-PlasterManifest, Get-PlasterTemplate, Test-PlasterManifest}
Binary 2.0.0 PowerShellEditorServices Desk Start-EditorServices
Binary 0.2.0 PowerShellEditorServices.VSCode Desk {New-VSCodeHtmlContentView, Show-VSCodeHtmlContentView, Close-VSCodeHtmlContentView, Set-VSCodeHtmlCo…
Script 2.0.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOptio…
Script 1.18.3 PSScriptAnalyzer Desk {Get-ScriptAnalyzerRule, Invoke-ScriptAnalyzer, Invoke-Formatter}
Debug output
DEBUG: 22:26:46 - GetAzureVMCommand begin processing with ParameterSet 'DefaultParamSet'.
DEBUG: 22:26:46 - using account id 'xxx'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx, environment: 'AzureCloud', tenant: 'xxx'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'xxx', Endpoint: 'https://login.microsoftonline.com/', ClientId:
'xxx', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8772394Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8772958Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8773276Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: === Token Acquisition started:
CacheType: null
Authentication Target: Client
, Authority Host: login.microsoftonline.com
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8773484Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: === Token Acquisition started:
Authority: https://login.microsoftonline.com/xxx/
Resource: https://management.core.windows.net/
ClientId: xxx
CacheType: null
Authentication Target: Client
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:46.8774125Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:46.8774328Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8780883Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 7 items to token cache.
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:46.8781534Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:46.8781756Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8782186Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8782387Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8782836Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: 7,130528671666666 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8783027Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: 7,130528671666666 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8783223Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8783417Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8784025Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 31.03.2020 20:33:54 +00:00
DEBUG: [ADAL]: Information: 2020-03-31T20:26:46.8784370Z: 0e316bc8-ab23-499e-b7c1-1be9d7f22dce - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 31.03.2020 20:33:54 +00:00Access Token Hash: xxx
User id:
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/31/2020 20:33:54 +00:00' Comparing to '03/31/2020 20:26:46 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:07:07.8311024'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/virtualMachines?api-version=2019-07-01
Headers:
x-ms-client-request-id : xxx
Accept-Language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-resource: Microsoft.Compute/HighCostGet3Min;139,Microsoft.Compute/HighCostGet30Min;698
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-request-id : 4dce843f-1a5e-400f-8394-60b660de337a
x-ms-ratelimit-remaining-subscription-reads: 11998
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-correlation-request-id : 79e273f9-469f-4965-a4e8-6a4e1d6bb784
x-ms-routing-request-id : WESTEUROPE:20200331T202646Z:79e273f9-469f-4965-a4e8-6a4e1d6bb784
X-Content-Type-Options : nosniff
Date : Tue, 31 Mar 2020 20:26:46 GMT
Body:
{
"value": [
{
"name": "vmtest001",
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/virtualMachines/vmtest001",
"type": "Microsoft.Compute/virtualMachines",
"location": "northeurope",
"properties": {
"vmId": "55eaf3fc-5210-448d-8871-7ca6629269b3",
"hardwareProfile": {
"vmSize": "Standard_A2_v2"
},
"storageProfile": {
"imageReference": {
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2019-Datacenter",
"version": "latest",
"exactVersion": "17763.1039.2002091844"
},
"osDisk": {
"osType": "Windows",
"name": "vmtest001_OsDisk_1_c42ec1f78ffc4dc781a347c15579de7f",
"createOption": "FromImage",
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/disks/vmtest001_OsDisk_1_c42ec1f78ffc4dc781a347c15579de7f"
},
"diskSizeGB": 127
},
"dataDisks": [
{
"lun": 0,
"name": "vmtest001_disk2_db0c05270f1f4ff295e073e6d6787c04",
"createOption": "Empty",
"caching": "None",
"managedDisk": {
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/disks/vmtest001_disk2_db0c05270f1f4ff295e073e6d6787c04"
},
"diskSizeGB": 1023,
"toBeDetached": false
}
]
},
"osProfile": {
"computerName": "vmtest001",
"adminUsername": "xxx",
"windowsConfiguration": {
"provisionVMAgent": true,
"enableAutomaticUpdates": true
},
"secrets": [],
"allowExtensionOperations": true,
"requireGuestProvisionSignal": true
},
"networkProfile": {
"networkInterfaces": [
{
"id": "/subscriptions/xxx/resourceGroups/rg-std-vse-001/providers/Microsoft.Network/networkInterfaces/nic-01-vmtest001-vse-001"
}
]
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": true,
"storageUri": "https://stlajensen001.blob.core.windows.net/"
}
},
"provisioningState": "Succeeded"
},
"resources": [
{
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/virtualMachines/vmtest001/extensions/DAExtension"
},
{
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/virtualMachines/vmtest001/extensions/MMAExtension"
}
]
}
]
}
DEBUG: AzureQoSEvent: CommandName - Get-AzVM; IsSuccess - True; Duration - 00:00:00.5335693;
DEBUG: Finish sending metric.
DEBUG: 22:26:47 - GetAzureVMCommand end processing.
DEBUG: 22:26:47 - GetAzureStorageAccountKeyCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 22:26:47 - using account id 'xxx'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx', environment: 'AzureCloud', tenant: 'xxx'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'xxx', Endpoint: 'https://login.microsoftonline.com/', ClientId:
'xxx', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7025596Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7026317Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7026699Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: === Token Acquisition started:
CacheType: null
Authentication Target: Client
, Authority Host: login.microsoftonline.com
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7026922Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: === Token Acquisition started:
Authority: https://login.microsoftonline.com/xxx/
Resource: https://management.core.windows.net/
ClientId: xxx
CacheType: null
Authentication Target: Client
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:47.7027654Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:47.7028026Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7043449Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 7 items to token cache.
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:47.7045921Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:47.7046351Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7047231Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7047557Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7047991Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: 7,11675361 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7048291Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: 7,11675361 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7048647Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7048891Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7049788Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 31.03.2020 20:33:54 +00:00
DEBUG: [ADAL]: Information: 2020-03-31T20:26:47.7050051Z: 8bbf341e-11c2-4986-b5bb-f7d461aa5d27 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 31.03.2020 20:33:54 +00:00Access Token Hash: xxx
User id:
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/31/2020 20:33:54 +00:00' Comparing to '03/31/2020 20:26:47 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:07:07.0043882'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
POST
Absolute Uri:
https://management.azure.com/subscriptions/xxx/resourceGroups/rg-std-vse-002/providers/Microsoft.Storage/storageAccounts/stlajensen002/listKeys?api-version=2019-06-01
Headers:
x-ms-client-request-id : xxx
Accept-Language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-request-id : xxx
Strict-Transport-Security : max-age=31536000; includeSubDomains
Server : Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id : 9577d2db-9afa-4c32-9746-31d3fa1e1168
x-ms-routing-request-id : WESTEUROPE:20200331T202647Z:9577d2db-9afa-4c32-9746-31d3fa1e1168
X-Content-Type-Options : nosniff
Date : Tue, 31 Mar 2020 20:26:46 GMT
Body:
{
"keys": [
{
"keyName": "key1",
"value": "xxx",
"permissions": "FULL"
},
{
"keyName": "key2",
"value": "xxx",
"permissions": "FULL"
}
]
}
DEBUG: AzureQoSEvent: CommandName - Get-AzStorageAccountKey; IsSuccess - True; Duration - 00:00:00.3352262;
DEBUG: Finish sending metric.
DEBUG: 22:26:48 - GetAzureStorageAccountKeyCommand end processing.
DEBUG: 22:26:48 - NewAzureStorageContext begin processing with ParameterSet 'AccountNameAndKey'.
DEBUG: 22:26:48 - NewAzureStorageContext end processing.
DEBUG: 22:26:48 - Init Operation Context for 'GetAzureStorageContainerCommand' with client request id Azure-Storage-PowerShell-xxx If you want to
get more details, please add "-Debug" to your command.
DEBUG: 22:26:48 - GetAzureStorageContainerCommand begin processing with ParameterSet 'ContainerName'.
DEBUG: 22:26:48 - Use storage account 'stlajensen002' from storage context.
DEBUG: 22:26:48 - Start 57th remote call, method: , destination: https://stlajensen002.blob.core.windows.net/?comp=list&prefix=&maxresults=5000&include=metadata.
DEBUG: 22:26:49 - Start 58th remote call, method: , destination: https://stlajensen002.blob.core.windows.net/stc-stlajensen002-002?restype=container&comp=acl.
DEBUG: 22:26:49 - GetAzureStorageContainerCommand end processing, Start 58 remote calls. Finish 58 remote calls. Elapsed time 7519475,70 ms. Client operation id: Azure-Storage-PowerShell-97e5e4a7-da05-41d7-990d-9b67e516220d.
DEBUG: 22:26:49 - GetAzureStorageContainerCommand end processing.
DEBUG: 22:26:49 - GrantAzureRmSnapshotAccess begin processing with ParameterSet 'DefaultParameter'.
DEBUG: 22:26:49 - using account id 'xxx'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx', environment: 'AzureCloud', tenant: 'xxx'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'xxx', Endpoint: 'https://login.microsoftonline.com/', ClientId:
'xxx', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6125806Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6126309Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6126778Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: === Token Acquisition started:
CacheType: null
Authentication Target: Client
, Authority Host: login.microsoftonline.com
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6126972Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: === Token Acquisition started:
Authority: https://login.microsoftonline.com/xxx/
Resource: https://management.core.windows.net/
ClientId: xxx
CacheType: null
Authentication Target: Client
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:49.6127288Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:49.6127475Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6133969Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 7 items to token cache.
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:49.6134669Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Verbose: 2020-03-31T20:26:49.6134871Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6135112Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6135294Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6135510Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: 7,084940873333333 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6135684Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: 7,084940873333333 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6135855Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6136027Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6136392Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 31.03.2020 20:33:54 +00:00
DEBUG: [ADAL]: Information: 2020-03-31T20:26:49.6136585Z: a1d36754-9874-4b56-8af9-2c0c3d2d091e - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 31.03.2020 20:33:54 +00:00Access Token Hash: xxx
User id:
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/31/2020 20:33:54 +00:00' Comparing to '03/31/2020 20:26:49 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:07:05.0949027'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
POST
Absolute Uri:
https://management.azure.com/subscriptions/xxx/resourceGroups/rg-std-vse-001/providers/Microsoft.Compute/snapshots/snapshot-vmtest001_disk2_db0c05270f1f4ff295e073e6d6787c04-001/beginGetAccess?api-version=2019-07-01
Headers:
x-ms-client-request-id : xxx
Accept-Language : en-US
Body:
{
"access": "Read",
"durationInSeconds": 5184000
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Accepted
Headers:
Cache-Control : no-cache
Pragma : no-cache
Location : https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/northeurope/DiskOperations/6ea366df-04f2-417c-8ac5-fc254eb5737e?monitor=true&api-version=2019-07-01
Azure-AsyncOperation : https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/northeurope/DiskOperations/6ea366df-04f2-417c-8ac5-fc254eb5737e?api-version=2019-07-01
x-ms-ratelimit-remaining-resource: Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;239,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1918
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : b55339a3-fc8c-4b90-8094-d1480d0c3e48_132299838391189347
x-ms-request-id : 6ea366df-04f2-417c-8ac5-fc254eb5737e
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id : 71263415-9da9-47d7-9866-c3e01a3eabba
x-ms-routing-request-id : WESTEUROPE:20200331T202649Z:71263415-9da9-47d7-9866-c3e01a3eabba
X-Content-Type-Options : nosniff
Date : Tue, 31 Mar 2020 20:26:49 GMT
Body:
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/31/2020 20:33:54 +00:00' Comparing to '03/31/2020 20:27:20 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:06:34.6874944'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/northeurope/DiskOperations/6ea366df-04f2-417c-8ac5-fc254eb5737e?api-version=2019-07-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;49998,Microsoft.Compute/GetOperation30Min;399995
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : b55339a3-fc8c-4b90-8094-d1480d0c3e48_132299838391189347
x-ms-request-id : 57fdd5ae-a46e-470f-b1f9-06dd9a0fa4c4
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-correlation-request-id : 1c8fdd9b-04f1-4e39-b5d8-bd3c2693eade
x-ms-routing-request-id : WESTEUROPE:20200331T202719Z:1c8fdd9b-04f1-4e39-b5d8-bd3c2693eade
X-Content-Type-Options : nosniff
Date : Tue, 31 Mar 2020 20:27:19 GMT
Body:
{
"startTime": "2020-03-31T22:26:49.1920336+02:00",
"endTime": "2020-03-31T22:26:49.4264108+02:00",
"status": "Succeeded",
"properties": {
"output": {
"accessSAS": "xxx"
}
},
"name": "xxx"
}
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/31/2020 20:33:54 +00:00' Comparing to '03/31/2020 20:27:20 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:06:34.6093502'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/northeurope/DiskOperations/6ea366df-04f2-417c-8ac5-fc254eb5737e?monitor=true&api-version=2019-07-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;399994
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : b55339a3-fc8c-4b90-8094-d1480d0c3e48_132299838391189347
x-ms-request-id : a1b608cc-7c58-48da-a5d1-1deec0483c1e
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11997
x-ms-correlation-request-id : 011fcb7e-fcd3-46a5-8423-c410d90cd4c5
x-ms-routing-request-id : WESTEUROPE:20200331T202719Z:011fcb7e-fcd3-46a5-8423-c410d90cd4c5
X-Content-Type-Options : nosniff
Date : Tue, 31 Mar 2020 20:27:19 GMT
Body:
{
"accessSAS": "xxx"
}
DEBUG: AzureQoSEvent: CommandName - Grant-AzSnapshotAccess; IsSuccess - True; Duration - 00:00:30.6261983;
DEBUG: Finish sending metric.
DEBUG: 22:27:20 - GrantAzureRmSnapshotAccess end processing.
DEBUG: 22:27:20 - Init Operation Context for 'StartAzureStorageBlobIncrementalCopy' with client request id Azure-Storage-PowerShell-97e5e4a7-da05-41d7-990d-9b67e516220d. If you want to get more details, please add "-Debug" to your command.
DEBUG: 22:27:20 - StartAzureStorageBlobIncrementalCopy begin processing with ParameterSet 'UriPipeline'.
DEBUG: 22:27:20 - Use storage account 'stlajensen002' from storage context.
DEBUG: 22:27:20 - Start 59th remote call, method: , destination: xxx&api-version=2019-02-02&snapshot=2020-03-31T19%3A53%3A38.5534010Z.
Start-AzStorageBlobIncrementalCopy: C:\git\IncrementalBlobCopyPOC\CopySnapshot.ps1:60:1
Line |
60 | Start-AzStorageBlobIncrementalCopy @BlobCopyParams
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The specified operation is not allowed on an incremental copy blob. HTTP Status Code: 409 - HTTP Error Message: The specified operation is not allowed on an
| incremental copy blob.
ErrorCode: OperationNotAllowedOnIncrementalCopyBlob
ErrorMessage: The specified operation is not allowed on an incremental copy blob.
| RequestId:152815e0-c01e-0053-2b9a-0709a1000000
Time:2020-03-31T20:27:21.3500165Z
DEBUG: 22:27:22 - StartAzureStorageBlobIncrementalCopy end processing, Start 60 remote calls. Finish 60 remote calls. Elapsed time 7552030,90 ms. Client operation id: Azure-Storage-PowerShell-97e5e4a7-da05-41d7-990d-9b67e516220d.
DEBUG: 22:27:22 - StartAzureStorageBlobIncrementalCopy end processing.
Error output
Message : The specified operation is not allowed on an incremental copy blob. HTTP Status Code: 409 - HTTP Error Message: The specified operation is not allowed on an increm
ental copy blob.
ErrorCode: OperationNotAllowedOnIncrementalCopyBlob
ErrorMessage: The specified operation is not allowed on an incremental copy blob.
RequestId:b84b1fe8-d01e-0012-7499-075145000000
Time:2020-03-31T20:21:13.2721157Z
StackTrace :
Exception : Microsoft.Azure.Storage.StorageException
InvocationInfo : {Start-AzStorageBlobIncrementalCopy}
Line : Start-AzStorageBlobIncrementalCopy @BlobCopyParams
Position : At C:\git\IncrementalBlobCopyPOC\CopySnapshot.ps1:60 char:1
+ Start-AzStorageBlobIncrementalCopy @BlobCopyParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 80
Message : The specified operation is not allowed on an incremental copy blob.
StackTrace : at Microsoft.Azure.Storage.Core.Executor.Executor.ExecuteAsync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken t
oken)
at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.StartAzureStorageBlobIncrementalCopy.StartCopyFromUri(Int64 taskId, IStorageBlobManagement destChannel, U
ri srcUri, CloudPageBlob destBlob)
at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.StartAzureStorageBlobIncrementalCopy.StartCopyAsync(Int64 taskId, IStorageBlobManagement destChannel, Uri
uri, CloudBlobContainer destContainer, String destBlobName)
at Microsoft.WindowsAzure.Commands.Storage.Common.LimitedConcurrencyTaskScheduler.RunConcurrentTask(Int64 taskId, Task task)
Exception : Microsoft.Azure.Storage.StorageException
InvocationInfo : {Start-AzStorageBlobIncrementalCopy}
Line : Start-AzStorageBlobIncrementalCopy @BlobCopyParams
Position : At C:\git\IncrementalBlobCopyPOC\CopySnapshot.ps1:60 char:1
+ Start-AzStorageBlobIncrementalCopy @BlobCopyParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 80
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.
Involve Storage team to help on it.
@lagebj
This error can report when the destination blob already exist before the IncrementalCopy, and is not created with IncrementalCopy.
Would you please check if the destination blob already exist, before you run the IncrementalCopy?
Besides that, as the error is reported from server, I will also contact feature team to look at it.
@blueww
I deleted all page blobs and snapshots and ran the same scripts as above. I still get the same error. I'm hoping to create a managed disk snapshot, create a new page blob by incremental copying the first snapshot and then be able to incremental copy new snapshots to same page blob.
After creating the snapshot I can see that it is an incremental snapshot by running
(Get-AzSnapshot -ResourceGroupName $ResourceGroupName -SnapshotName $SnapshotName).Incremental
True
Error
Message : The specified operation is not allowed on an incremental copy blob. HTTP Status Code: 409 - HTTP Error Message: The specified operation is not allowed on an incremental copy blob.
ErrorCode: OperationNotAllowedOnIncrementalCopyBlob
ErrorMessage: The specified operation is not allowed on an incremental copy blob.
RequestId:89064d47-201e-0006-06e4-09192a000000
Time:2020-04-03T18:20:41.0220863Z
StackTrace :
Exception : Microsoft.Azure.Storage.StorageException
InvocationInfo : {Start-AzStorageBlobIncrementalCopy}
Line : Start-AzStorageBlobIncrementalCopy @BlobCopyParams
Position : At C:\git\IncrementalBlobCopyPOC\TestNew.ps1:58 char:1
+ Start-AzStorageBlobIncrementalCopy @BlobCopyParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 140
Message : The specified operation is not allowed on an incremental copy blob.
StackTrace : at Microsoft.Azure.Storage.Core.Executor.Executor.ExecuteAsync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken token)
at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.StartAzureStorageBlobIncrementalCopy.StartCopyFromUri(Int64 taskId, IStorageBlobManagement destChannel, Uri srcUri, CloudPageBlob destBlob)
at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.StartAzureStorageBlobIncrementalCopy.StartCopyAsync(Int64 taskId, IStorageBlobManagement destChannel, Uri uri, CloudBlobContainer destContainer, String destBlobName)
at Microsoft.WindowsAzure.Commands.Storage.Common.LimitedConcurrencyTaskScheduler.RunConcurrentTask(Int64 taskId, Task task)
Exception : Microsoft.Azure.Storage.StorageException
InvocationInfo : {Start-AzStorageBlobIncrementalCopy}
Line : Start-AzStorageBlobIncrementalCopy @BlobCopyParams
Position : At C:\git\IncrementalBlobCopyPOC\TestNew.ps1:58 char:1
+ Start-AzStorageBlobIncrementalCopy @BlobCopyParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 140
@lagebj Thanks for the detail! I can also repro the same issue by create a normal page blob, delete it and then try to Incremental Copy to it. I have contact feature team to look why server behavior like that.
Anyway, Incremental Copy to a blob which never exist before (after the container created), still works fine on my test account. So would you like to change the destination blob name to a blob which never exist before, to see if can workaround this issue?
@blueww
When copying to a page blob with another name I am able to copy the first snapshot. I then created a new snapshot of the managed disk and ran the same script again to copy the second snapshot to the same page blob and encountered a different error.
Error
Message : Server encountered an internal error. Please try again after some time. HTTP Status Code: 500 - HTTP Error Message: Server encountered an internal error. Please try again after some time.
ErrorCode: InternalError
ErrorMessage: Server encountered an internal error. Please try again after some time.
RequestId:c3f5422f-e01e-0019-2889-0aaa2e000000
Time:2020-04-04T14:04:39.7689007Z
StackTrace :
Exception : Microsoft.Azure.Storage.StorageException
InvocationInfo : {Start-AzStorageBlobIncrementalCopy}
Line : Start-AzStorageBlobIncrementalCopy @BlobCopyParams
Position : At C:\git\IncrementalBlobCopyPOC\TestNew.ps1:58 char:1
+ Start-AzStorageBlobIncrementalCopy @BlobCopyParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 5
Message : Server encountered an internal error. Please try again after some time.
StackTrace : at Microsoft.Azure.Storage.Core.Executor.Executor.ExecuteAsync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken token)
at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.StartAzureStorageBlobIncrementalCopy.StartCopyFromUri(Int64 taskId, IStorageBlobManagement destChannel, Uri srcUri, CloudPageBlob destBlob)
at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.StartAzureStorageBlobIncrementalCopy.StartCopyAsync(Int64 taskId, IStorageBlobManagement destChannel, Uri uri, CloudBlobContainer destContainer, String destBlobName)
at Microsoft.WindowsAzure.Commands.Storage.Common.LimitedConcurrencyTaskScheduler.RunConcurrentTask(Int64 taskId, Task task)
Exception : Microsoft.Azure.Storage.StorageException
InvocationInfo : {Start-AzStorageBlobIncrementalCopy}
Line : Start-AzStorageBlobIncrementalCopy @BlobCopyParams
Position : At C:\git\IncrementalBlobCopyPOC\TestNew.ps1:58 char:1
+ Start-AzStorageBlobIncrementalCopy @BlobCopyParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 5
@lagebj This is not a Powershell issue, this is server issue (actually the before error is also server issue). For server issue, would you please create an incident on https://icm.ad.msft.net/imp/v3/incidents/create, you can assign it to Team: Xstore/FE.
Please include the detail repro steps, and the following request ID/error message in the incident:
Current Issue
Message : Server encountered an internal error. Please try again after some time. HTTP Status Code: 500 - HTTP Error Message: Server encountered an internal error. Please try again after some time. ErrorCode: InternalError ErrorMessage: Server encountered an internal error. Please try again after some time. RequestId:c3f5422f-e01e-0019-2889-0aaa2e000000 Time:2020-04-04T14:04:39.7689007Z
Before issue:
Message : The specified operation is not allowed on an incremental copy blob. HTTP Status Code: 409 - HTTP Error Message: The specified operation is not allowed on an increm ental copy blob. ErrorCode: OperationNotAllowedOnIncrementalCopyBlob ErrorMessage: The specified operation is not allowed on an incremental copy blob. RequestId:b84b1fe8-d01e-0012-7499-075145000000 Time:2020-03-31T20:21:13.2721157Z
@blueww I cannot access that site. Can you create the incident?
@lagebj I have contact feature team again, and they suggest to follow this issue in mail first. BTW, for the 500 error, it should be retryable. Have you try to re-copy it, do you meet same issue with retry? If so, would you please give the PSH output ?
@blueww Thank you, I will test again and report the results.
@blueww I deleted all snapshots and page blobs, created a new snapshot and created a new page blob (creating a random guid name that has not been used before) by incremental copying new snapshot. Same error.
Here is the debug and Resolve-AzError output:
Debug output
DEBUG: 15:23:25 - GetAzureVMCommand begin processing with ParameterSet 'DefaultParamSet'.
DEBUG: 15:23:25 - using account id 'xxx'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx', environment: 'AzureCloud', tenant: 'xxx'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'xxx', Endpoint: 'https://login.microsoftonline.com/', ClientId:
'xxx', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2345305Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2346145Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2346766Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: === Token Acquisition started:
CacheType: null
Authentication Target: Client
, Authority Host: login.microsoftonline.com
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2347229Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: === Token Acquisition started:
Authority: https://login.microsoftonline.com/xxx/
Resource: https://management.core.windows.net/
ClientId: xxx
CacheType: null
Authentication Target: Client
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:25.2348311Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:25.2348592Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2459069Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 7 items to token cache.
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:25.2460837Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:25.2461175Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2461769Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2462015Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2462644Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: 51,49746235166667 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2462879Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: 51,49746235166667 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2463323Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2463648Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2464386Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 07.04.2020 14:14:55 +00:00
DEBUG: [ADAL]: Information: 2020-04-07T13:23:25.2464688Z: e58d598a-b2f0-43a1-baf4-68575f3440e5 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 07.04.2020 14:14:55 +00:00Access Token Hash: xxx
User id:
DEBUG: [Common.Authentication]: Checking token expiration, token expires '04/07/2020 14:14:55 +00:00' Comparing to '04/07/2020 13:23:25 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:51:29.8469193'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/virtualMachines?api-version=2019-07-01
Headers:
x-ms-client-request-id : 0ac96047-ba2e-4cfa-8d84-1843cd9ec8b7
Accept-Language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-resource: Microsoft.Compute/HighCostGet3Min;138,Microsoft.Compute/HighCostGet30Min;697
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-request-id : 8a25ca83-b83a-4386-8957-f4d06ef56a86
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-correlation-request-id : 09004342-2717-4f61-8504-0c07ac46f1f7
x-ms-routing-request-id : WESTEUROPE:20200407T132325Z:09004342-2717-4f61-8504-0c07ac46f1f7
X-Content-Type-Options : nosniff
Date : Tue, 07 Apr 2020 13:23:24 GMT
Body:
{
"value": [
{
"name": "vmtest001",
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/virtualMachines/vmtest001",
"type": "Microsoft.Compute/virtualMachines",
"location": "northeurope",
"properties": {
"vmId": "xxx",
"hardwareProfile": {
"vmSize": "Standard_A2_v2"
},
"storageProfile": {
"imageReference": {
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2019-Datacenter",
"version": "latest",
"exactVersion": "17763.1039.2002091844"
},
"osDisk": {
"osType": "Windows",
"name": "vmtest001_OsDisk_1_c42ec1f78ffc4dc781a347c15579de7f",
"createOption": "FromImage",
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/disks/vmtest001_OsDisk_1_c42ec1f78ffc4dc781a347c15579de7f"
},
"diskSizeGB": 127
},
"dataDisks": [
{
"lun": 0,
"name": "vmtest001_disk2_db0c05270f1f4ff295e073e6d6787c04",
"createOption": "Empty",
"caching": "None",
"managedDisk": {
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/disks/vmtest001_disk2_db0c05270f1f4ff295e073e6d6787c04"
},
"diskSizeGB": 1023,
"toBeDetached": false
}
]
},
"osProfile": {
"computerName": "vmtest001",
"adminUsername": "lagebj",
"windowsConfiguration": {
"provisionVMAgent": true,
"enableAutomaticUpdates": true
},
"secrets": [],
"allowExtensionOperations": true,
"requireGuestProvisionSignal": true
},
"networkProfile": {
"networkInterfaces": [
{
"id": "/subscriptions/xxx/resourceGroups/rg-std-vse-001/providers/Microsoft.Network/networkInterfaces/nic-01-vmtest001-vse-001"
}
]
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": true,
"storageUri": "https://xxx.blob.core.windows.net/"
}
},
"provisioningState": "Succeeded"
},
"resources": [
{
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/virtualMachines/vmtest001/extensions/DAExtension"
},
{
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/virtualMachines/vmtest001/extensions/Microsoft.Powershell.DSC"
},
{
"id": "/subscriptions/xxx/resourceGroups/RG-STD-VSE-001/providers/Microsoft.Compute/virtualMachines/vmtest001/extensions/MMAExtension"
}
]
}
]
}
DEBUG: AzureQoSEvent: CommandName - Get-AzVM; IsSuccess - True; Duration - 00:00:00.5021716;
DEBUG: Finish sending metric.
DEBUG: 15:23:26 - GetAzureVMCommand end processing.
DEBUG: 15:23:26 - GetAzureStorageAccountKeyCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 15:23:26 - using account id 'xxx'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx', environment: 'AzureCloud', tenant: 'xxx'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'xxx', Endpoint: 'https://login.microsoftonline.com/', ClientId:
'xxx', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3670994Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3671635Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3671998Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: === Token Acquisition started:
CacheType: null
Authentication Target: Client
, Authority Host: login.microsoftonline.com
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3672253Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: === Token Acquisition started:
Authority: https://login.microsoftonline.com/xxx/
Resource: https://management.core.windows.net/
ClientId: xxx
CacheType: null
Authentication Target: Client
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:26.3673047Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:26.3673305Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3684002Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 7 items to token cache.
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:26.3684578Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:26.3684801Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3685205Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3685437Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3685956Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: 51,47875681166666 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3686178Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: 51,47875681166666 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3686415Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3686630Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3687407Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 07.04.2020 14:14:55 +00:00
DEBUG: [ADAL]: Information: 2020-04-07T13:23:26.3687636Z: 66efcd65-ef13-4591-8aa2-78d477cad40b - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 07.04.2020 14:14:55 +00:00Access Token Hash: xxx
User id:
DEBUG: [Common.Authentication]: Checking token expiration, token expires '04/07/2020 14:14:55 +00:00' Comparing to '04/07/2020 13:23:26 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:51:28.7247672'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
POST
Absolute Uri:
https://management.azure.com/subscriptions/xxx/resourceGroups/rg-std-vse-002/providers/Microsoft.Storage/storageAccounts/xxx/listKeys?api-version=2019-06-01
Headers:
x-ms-client-request-id : dcb60694-2ba3-4074-8f07-d7f869a58833
Accept-Language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-request-id : c8e58662-c668-41ad-86d6-f6b09b88ab80
Strict-Transport-Security : max-age=31536000; includeSubDomains
Server : Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id : 272c04e1-2d9d-400b-84ea-1fb7662052c1
x-ms-routing-request-id : WESTEUROPE:20200407T132326Z:272c04e1-2d9d-400b-84ea-1fb7662052c1
X-Content-Type-Options : nosniff
Date : Tue, 07 Apr 2020 13:23:26 GMT
Body:
{
"keys": [
{
"keyName": "key1",
"value": "xxx",
"permissions": "FULL"
},
{
"keyName": "key2",
"value": "xxx",
"permissions": "FULL"
}
]
}
DEBUG: AzureQoSEvent: CommandName - Get-AzStorageAccountKey; IsSuccess - True; Duration - 00:00:00.3477454;
DEBUG: Finish sending metric.
DEBUG: 15:23:27 - GetAzureStorageAccountKeyCommand end processing.
DEBUG: 15:23:27 - NewAzureStorageContext begin processing with ParameterSet 'AccountNameAndKey'.
DEBUG: 15:23:27 - NewAzureStorageContext end processing.
DEBUG: 15:23:27 - Init Operation Context for 'GetAzureStorageContainerCommand' with client request id Azure-Storage-PowerShell-c619633d-9ae1-405a-8a0c-74338e72f677. If you want to
get more details, please add "-Debug" to your command.
DEBUG: 15:23:27 - GetAzureStorageContainerCommand begin processing with ParameterSet 'ContainerName'.
DEBUG: 15:23:27 - Use storage account 'stlajensen002' from storage context.
DEBUG: 15:23:27 - Start 128th remote call, method: , destination: https://xxx.blob.core.windows.net/?comp=list&prefix=&maxresults=5000&include=metadata.
DEBUG: 15:23:27 - Start 129th remote call, method: , destination: https://xxx.blob.core.windows.net/stc-stlajensen002-002?restype=container&comp=acl.
DEBUG: 15:23:27 - Start 130th remote call, method: , destination: https://xxx.blob.core.windows.net/stc-stlajensen002-002-test?restype=container&comp=acl.
DEBUG: 15:23:27 - GetAzureStorageContainerCommand end processing, Start 130 remote calls. Finish 130 remote calls. Elapsed time 5840527,72 ms. Client operation id: Azure-Storage-PowerShell-c619633d-9ae1-405a-8a0c-74338e72f677.
DEBUG: 15:23:27 - GetAzureStorageContainerCommand end processing.
DEBUG: 15:23:27 - GrantAzureRmSnapshotAccess begin processing with ParameterSet 'DefaultParameter'.
DEBUG: 15:23:27 - using account id 'xxx'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx', environment: 'AzureCloud', tenant: 'xxx'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: '8b87af7d-8647-4dc7-8df4-5f69a2011bb5', Endpoint: 'https://login.microsoftonline.com/', ClientId:
'xxx', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8869667Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8870224Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: ADAL PCL.CoreCLR with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8870550Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: === Token Acquisition started:
CacheType: null
Authentication Target: Client
, Authority Host: login.microsoftonline.com
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8870772Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: === Token Acquisition started:
Authority: https://login.microsoftonline.com/xxx/
Resource: https://management.core.windows.net/
ClientId: xxx
CacheType: null
Authentication Target: Client
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:27.8871374Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:27.8871593Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8880068Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 7 items to token cache.
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:27.8880662Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Verbose: 2020-04-07T13:23:27.8880917Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8881314Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8881513Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: An item matching the requested resource was found in the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8882114Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: 51,45342987666667 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8882311Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: 51,45342987666667 minutes left until token in cache expires
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8882498Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8882685Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in
the cache
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8883295Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 07.04.2020 14:14:55 +00:00
DEBUG: [ADAL]: Information: 2020-04-07T13:23:27.8883525Z: 964afd90-3cfc-42b7-95c1-741a8254f3e6 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 07.04.2020 14:14:55 +00:00Access Token Hash: xxx
User id:
DEBUG: [Common.Authentication]: Checking token expiration, token expires '04/07/2020 14:14:55 +00:00' Comparing to '04/07/2020 13:23:27 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:51:27.2042396'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
POST
Absolute Uri:
https://management.azure.com/subscriptions/xxx/resourceGroups/rg-std-vse-001/providers/Microsoft.Compute/snapshots/snapshot-vmtest001_disk2_db0c05270f1f4ff295e073e6d6787c04-002/beginGetAccess?api-version=2019-07-01
Headers:
x-ms-client-request-id : 9b407f2f-a0f4-4adb-8d38-1273181f9c50
Accept-Language : en-US
Body:
{
"access": "Read",
"durationInSeconds": 5184000
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Accepted
Headers:
Cache-Control : no-cache
Pragma : no-cache
Location : https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/northeurope/DiskOperations/50d42db2-35cc-403a-a89a-85784593c913?monitor=true&api-version=2019-07-01
Azure-AsyncOperation : https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/northeurope/DiskOperations/50d42db2-35cc-403a-a89a-85784593c913?api-version=2019-07-01
x-ms-ratelimit-remaining-resource: Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;238,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1916
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : b55339a3-fc8c-4b90-8094-d1480d0c3e48_132299838391189347
x-ms-request-id : 50d42db2-35cc-403a-a89a-85784593c913
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id : 42d4c516-1ed7-401a-a2d9-ab7ec8ae35b4
x-ms-routing-request-id : WESTEUROPE:20200407T132328Z:42d4c516-1ed7-401a-a2d9-ab7ec8ae35b4
X-Content-Type-Options : nosniff
Date : Tue, 07 Apr 2020 13:23:27 GMT
Body:
DEBUG: [Common.Authentication]: Checking token expiration, token expires '04/07/2020 14:14:55 +00:00' Comparing to '04/07/2020 13:23:58 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:50:56.8074163'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/northeurope/DiskOperations/50d42db2-35cc-403a-a89a-85784593c913?api-version=2019-07-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;49995,Microsoft.Compute/GetOperation30Min;399990
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : b55339a3-fc8c-4b90-8094-d1480d0c3e48_132299838391189347
x-ms-request-id : c9fb51c1-f928-4ec5-81df-714aa92f7eb8
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-correlation-request-id : 57b36bf2-30b3-4fe9-9259-1b8cb0c3f258
x-ms-routing-request-id : WESTEUROPE:20200407T132358Z:57b36bf2-30b3-4fe9-9259-1b8cb0c3f258
X-Content-Type-Options : nosniff
Date : Tue, 07 Apr 2020 13:23:58 GMT
Body:
{
"startTime": "2020-04-07T15:23:28.2488619+02:00",
"endTime": "2020-04-07T15:23:28.4675941+02:00",
"status": "Succeeded",
"properties": {
"output": {
"accessSAS": "https://xxx.blob.core.windows.net/fpr0cxsxlbzm/abcd?snapshot=2020-04-07T13%3A15%3A00.9186972Z&sv=2018-11-09&sr=bs&si=1af72b0d24a946d486101303df3cfa9e0e6f2aab4cec402e8a7b6d7c8dfe81b6&sig=xxx"
}
},
"name": "50d42db2-35cc-403a-a89a-85784593c913"
}
DEBUG: [Common.Authentication]: Checking token expiration, token expires '04/07/2020 14:14:55 +00:00' Comparing to '04/07/2020 13:23:58 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:50:56.7175961'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/xxx/providers/Microsoft.Compute/locations/northeurope/DiskOperations/50d42db2-35cc-403a-a89a-85784593c913?monitor=true&api-version=2019-07-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;49994,Microsoft.Compute/GetOperation30Min;399989
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : b55339a3-fc8c-4b90-8094-d1480d0c3e48_132299838391189347
x-ms-request-id : 75038d13-55ce-4286-8f38-902cddce7a05
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-correlation-request-id : 715ab96e-4a50-48a7-953e-043ecb991608
x-ms-routing-request-id : WESTEUROPE:20200407T132358Z:715ab96e-4a50-48a7-953e-043ecb991608
X-Content-Type-Options : nosniff
Date : Tue, 07 Apr 2020 13:23:58 GMT
Body:
{
"accessSAS": "https://md-hwspb2jwbkht.blob.core.windows.net/fpr0cxsxlbzm/abcd?snapshot=2020-04-07T13%3A15%3A00.9186972Z&sv=2018-11-09&sr=bs&si=1af72b0d24a946d486101303df3cfa9e0e6f
2aab4cec402e8a7b6d7c8dfe81b6&sig=xxx"
}
DEBUG: AzureQoSEvent: CommandName - Grant-AzSnapshotAccess; IsSuccess - True; Duration - 00:00:30.6651306;
DEBUG: Finish sending metric.
DEBUG: 15:23:59 - GrantAzureRmSnapshotAccess end processing.
DEBUG: 15:23:59 - Init Operation Context for 'StartAzureStorageBlobIncrementalCopy' with client request id Azure-Storage-PowerShell-c619633d-9ae1-405a-8a0c-74338e72f677. If you want to get more details, please add "-Debug" to your command.
DEBUG: 15:23:59 - StartAzureStorageBlobIncrementalCopy begin processing with ParameterSet 'UriPipeline'.
DEBUG: 15:23:59 - Use storage account 'xxx' from storage context.
DEBUG: 15:23:59 - Start 131th remote call, method: , destination: https://md-hwspb2jwbkht.blob.core.windows.net/fpr0cxsxlbzm/abcd?sv=2018-11-09&sr=bs&si=1af72b0d24a946d486101303df3cfa9e0e6f2aab4cec402e8a7b6d7c8dfe81b6&sig=xxx&api-version=2019-02-02&snapshot=2020-04-07T13%3A15%3A00.9186972Z.
Start-AzStorageBlobIncrementalCopy: C:\git\IncrementalBlobCopyPOC\TestNew.ps1:58:1
Line |
58 | Start-AzStorageBlobIncrementalCopy @BlobCopyParams
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Server encountered an internal error. Please try again after some time. HTTP Status Code: 500 - HTTP Error Message: Server encountered an internal error. Please
| try again after some time.
ErrorCode: InternalError
ErrorMessage: Server encountered an internal error. Please try again after some time.
| RequestId:99ee979a-801e-000f-19df-0c5cf9000000
Time:2020-04-07T13:24:27.6022678Z
DEBUG: 15:24:27 - StartAzureStorageBlobIncrementalCopy end processing, Start 135 remote calls. Finish 135 remote calls. Elapsed time 5900154,90 ms. Client operation id: Azure-Storage-PowerShell-c619633d-9ae1-405a-8a0c-74338e72f677.
DEBUG: 15:24:27 - StartAzureStorageBlobIncrementalCopy end processing.
Resolve-AzError output
Message : Server encountered an internal error. Please try again after some time. HTTP Status Code: 500 - HTTP Error Message: Server encountered an internal error. Please tr
y again after some time.
ErrorCode: InternalError
ErrorMessage: Server encountered an internal error. Please try again after some time.
RequestId:99ee979a-801e-000f-19df-0c5cf9000000
Time:2020-04-07T13:24:27.6022678Z
StackTrace :
Exception : Microsoft.Azure.Storage.StorageException
InvocationInfo : {Start-AzStorageBlobIncrementalCopy}
Line : Start-AzStorageBlobIncrementalCopy @BlobCopyParams
Position : At C:\git\IncrementalBlobCopyPOC\TestNew.ps1:58 char:1
+ Start-AzStorageBlobIncrementalCopy @BlobCopyParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 71
Message : Server encountered an internal error. Please try again after some time.
StackTrace : at Microsoft.Azure.Storage.Core.Executor.Executor.ExecuteAsync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken t
oken)
at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.StartAzureStorageBlobIncrementalCopy.StartCopyFromUri(Int64 taskId, IStorageBlobManagement destChannel, U
ri srcUri, CloudPageBlob destBlob)
at Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.StartAzureStorageBlobIncrementalCopy.StartCopyAsync(Int64 taskId, IStorageBlobManagement destChannel, Uri
uri, CloudBlobContainer destContainer, String destBlobName)
at Microsoft.WindowsAzure.Commands.Storage.Common.LimitedConcurrencyTaskScheduler.RunConcurrentTask(Int64 taskId, Task task)
Exception : Microsoft.Azure.Storage.StorageException
InvocationInfo : {Start-AzStorageBlobIncrementalCopy}
Line : Start-AzStorageBlobIncrementalCopy @BlobCopyParams
Position : At C:\git\IncrementalBlobCopyPOC\TestNew.ps1:58 char:1
+ Start-AzStorageBlobIncrementalCopy @BlobCopyParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 71
@lagebj
Thanks for the quick responds and details! The feature team is looking at it and have some finding, but do need more time.
And, it seems the source account is already deleted, so there might be not enough info to investigate. We might will need a repro without delete source account later. (Not now, I will inform you if need).
BTW, we only need the Start-AzStorageBlobIncrementalCopy cmdlet output and error information. And you can hide any credentail, but leave the request ID, this is the key to get the information to investigate.
@blueww
Please let me know if/when you want me to supply additional information.
Thanks for your patience and support on the t-shooting, @lagebj . We are working actively with backend service team on this issue, and will keep you updated with the progress. If you do want, you may also open a ticket to Azure Support on the Azure portal and quote the analysis we've done from PSH cmdlet side to indicate it could be a service issue, that way, you can also track the issue from service side at the same time.
@lagebj Thanks for your patient! I have get update from feature team:
-
for the first "OperationNotAllowedOnIncrementalCopyBlob" error: This is a bug on server, and will be fixed in a future release.
-
For the 2nd "InternalError": There's a SAS issue is specific to incremental copy and the fact that we are returning snapshot SAS. So unfortunately, user cannot use incremental copy (from managed snapshots) until the issue is fixed. As a work around user can obtain the diff using GetPageRangeDiff and copy the modified ranges using insert page. This is the link that shows how to use getPageRange with incremental snapshots: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-incremental-snapshots Github example: https://github.com/Azure-Samples/managed-disks-dotnet-backup-with-incremental-snapshots
As these are both are server issue, would you mind to open a ticket to Azure Support on the Azure portal, to track the issue? If you don't mind, as they are not Powershell issue, and powershell team can do nothing for it. Do you mind to close this issue? (I can still update it when get the issues fixed even it's closed.)
Thanks @vinjiang @blueww .
- What is ETA on future release?
- ETA on fix? Is this related to same 'future release' as 1.?
I have attempted to use GetPageRangeDiff method with Powershell as well, but without luck. The Github example uses prerelease versions of Microsoft.Azure.Storage.Blob and Microsoft.Azure.Storage.Common as far as I can see and contains methods not available in current Az.Storage module.
For the time being I am only doing testing in my VSE subscription and only have support plans for billing, subscription management and quota increase and I'm not able to create a ticket for this in the portal unfortunately.
@lagebj
-
Do you have an NDA signed with Microsoft? If so, please send a mail to me ([email protected]), and I will include feature team to answer the detail fix ETA.
-
@ramankumarlive Would you please help to answer it?
For how to call the APIs in Powershell , following command works on with latest Az.Storage 1.13.0 on my storage account (It just show how to use the API, not for copy page difference)
PS C:\WINDOWS\system32> $blobs = Get-AzStorageBlob -Container $containerName -Context $ctx
PS C:\WINDOWS\system32> $blobs
Container Uri: https://***.blob.core.windows.net/test1
Name BlobType Length ContentType LastModified AccessTier SnapshotTime IsDeleted
---- -------- ------ ----------- ------------ ---------- ------------ ---------
page PageBlob 2097152 2020-04-14 06:07:38Z 2020-04-14 06:07:38Z False
page PageBlob 2097152 2020-04-14 06:07:38Z 2020-04-14 06:07:50Z False
page PageBlob 2097152 2020-04-14 06:12:50Z False
PS C:\WINDOWS\system32> $blobs[1].ICloudBlob.GetPageRangesDiff($blobs[0].SnapshotTime)
PS C:\WINDOWS\system32> $blobs[1].ICloudBlob.GetPageRanges()
StartOffset EndOffset
----------- ---------
0 2097151
PS C:\WINDOWS\system32> $destblob = Start-AzStorageBlobCopy -srcContainer $containerName -SrcBlob page -DestContainer $containerName -DestBlob pagedest -Context $ctx -DestContext $ctx
PS C:\WINDOWS\system32> $sasUri = New-AzStorageBlobSASToken -CloudBlob $blobs[1].ICloudBlob -Permission rw -ExpiryTime 2020-04-30 -FullUri -Context $ctx
PS C:\WINDOWS\system32> $sasUri
https://***.blob.core.windows.net/***/page?snapshot=2020-04-14T06:07:50.3255755Z&sv=2019-02-02&sr=bs&sig=***&se=2020-04-29T16%3A00%3A00Z&sp=rw
PS C:\WINDOWS\system32> $destblob.ICloudBlob.WritePages($sasUri, 0, 2097152, 0)
Thank you @blueww . I will go over my GetPageRangeDiff version of the script and test again.
My VSE subscription is provided to me by my employer, so I don't know anything about any NDA unfortunately.
I will update here after testing the GetPageRangeDiff route.
@lagebj I tried to run GetPageRangeDiff with blob in snapshot sas credential, and it failed with 403 on my account. (might because the SAS don't have read access to another snapshot)
Let's wait for @ramankumarlive comment how to do it.
@blueww Yes, that is the same problem I have as well.