Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-AzureRmVMRunCommand returns empty #5982

Closed
mcocak opened this issue Apr 18, 2018 · 17 comments
Closed

Invoke-AzureRmVMRunCommand returns empty #5982

mcocak opened this issue Apr 18, 2018 · 17 comments
Assignees
Labels
Compute - VM Compute Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@mcocak
Copy link

mcocak commented Apr 18, 2018

Description

Invoke-AzureRmVMRunCommand started returning empty after execution. Until last week, the command printed the stdout of the remotely executed command on the VM. However, it is now returning empty string.

As you see in the debug output below, I'm executing a basic "docker ps" command on the remote Linux VM. The command is for sure executed remotely and the output of the command is visible in the HTTP response from Azure, however, Invoke-AzureRmVMRunCommand output is empty.

Script/Steps for Reproduction

Invoke-AzureRmVMRunCommand -ResourceGroupName $resourceGroup -Name $vmName -CommandId 'RunShellScript' -ScriptPath $scriptFile

Module Version

Get-Module -Name AzureRM -ListAvailable
ModuleType Version    Name                                ExportedCommands                                                                      
---------- -------    ----                                ----------------                                                                      
Script     0.11.0     AzureRM.Aks.Netcore                 {Get-AzureRmAks, New-AzureRmAks, Remove-AzureRmAks, Import-AzureRmAksCredential...}   
Script     0.11.0     AzureRM.AnalysisServices.Netcore    {Resume-AzureRmAnalysisServicesServer, Suspend-AzureRmAnalysisServicesServer, Get-A...
Script     0.11.0     AzureRM.ApiManagement.Netcore       {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoToken, New-AzureRmApiMa...
Script     0.11.0     AzureRM.ApplicationInsights.Netcore {Get-AzureRmApplicationInsights, New-AzureRmApplicationInsights, Remove-AzureRmAppl...
Script     0.11.0     AzureRM.Automation.Netcore          {Get-AzureRMAutomationHybridWorkerGroup, Get-AzureRmAutomationJobOutputRecord, Impo...
Script     0.11.0     AzureRM.Backup.Netcore              {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerReregistration, Get-AzureRm...
Script     0.11.0     AzureRM.Batch.Netcore               {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccount, Get-AzureRmBatchAccountKeys, ...
Script     0.11.0     AzureRM.Billing.Netcore             {Get-AzureRmBillingInvoice, Get-AzureRmBillingPeriod, Get-AzureRmEnrollmentAccount}   
Script     0.11.0     AzureRM.Cdn.Netcore                 {Get-AzureRmCdnProfile, Get-AzureRmCdnProfileSsoUrl, New-AzureRmCdnProfile, Remove-...
Script     0.11.0     AzureRM.CognitiveServices.Netcore   {Get-AzureRmCognitiveServicesAccount, Get-AzureRmCognitiveServicesAccountKey, Get-A...
Script     0.11.0     AzureRM.Compute.Netcore             {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailability...
Script     0.10.0     AzureRM.Compute.Netcore             {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailability...
Script     0.11.0     AzureRM.Consumption.Netcore         Get-AzureRmConsumptionUsageDetail                                                     
Script     0.11.0     AzureRM.ContainerInstance.Netcore   {New-AzureRmContainerGroup, Get-AzureRmContainerGroup, Remove-AzureRmContainerGroup...
Script     0.11.0     AzureRM.ContainerRegistry.Netcore   {New-AzureRmContainerRegistry, Get-AzureRmContainerRegistry, Update-AzureRmContaine...
Script     0.11.0     AzureRM.DataFactories.Netcore       {Remove-AzureRmDataFactory, Get-AzureRmDataFactoryRun, Get-AzureRmDataFactorySlice,...
Script     0.11.0     AzureRM.DataFactoryV2.Netcore       {Set-AzureRmDataFactoryV2, Update-AzureRmDataFactoryV2, Get-AzureRmDataFactoryV2, R...
Script     0.11.0     AzureRM.DataLakeAnalytics.Netcore   {Get-AzureRmDataLakeAnalyticsDataSource, New-AzureRmDataLakeAnalyticsCatalogCredent...
Script     0.11.0     AzureRM.DataLakeStore.Netcore       {Get-AzureRmDataLakeStoreTrustedIdProvider, Remove-AzureRmDataLakeStoreTrustedIdPro...
Script     0.11.0     AzureRM.DevTestLabs.Netcore         {Get-AzureRmDtlAllowedVMSizesPolicy, Get-AzureRmDtlAutoShutdownPolicy, Get-AzureRmD...
Script     0.11.0     AzureRM.Dns.Netcore                 {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remove-AzureRmDnsRecordSet, S...
Script     0.11.0     AzureRM.EventGrid.Netcore           {New-AzureRmEventGridTopic, Get-AzureRmEventGridTopic, Set-AzureRmEventGridTopic, N...
Script     0.11.0     AzureRM.EventHub.Netcore            {New-AzureRmEventHubNamespace, Get-AzureRmEventHubNamespace, Set-AzureRmEventHubNam...
Script     0.11.0     AzureRM.Insights.Netcore            {Get-AzureRmMetricDefinition, Get-AzureRmMetric, Remove-AzureRmLogProfile, Get-Azur...
Script     0.11.0     AzureRM.IotHub.Netcore              {Add-AzureRmIotHubKey, Get-AzureRmIotHubEventHubConsumerGroup, Get-AzureRmIotHubCon...
Script     0.11.0     AzureRM.KeyVault.Netcore            {Add-AzureKeyVaultCertificate, Set-AzureKeyVaultCertificateAttribute, Stop-AzureKey...
Script     0.10.0     AzureRM.KeyVault.Netcore            {Add-AzureKeyVaultCertificate, Set-AzureKeyVaultCertificateAttribute, Stop-AzureKey...
Script     0.11.0     AzureRM.LogicApp.Netcore            {Get-AzureRmIntegrationAccountAgreement, Get-AzureRmIntegrationAccountCallbackUrl, ...
Script     0.11.0     AzureRM.MachineLearning.Netcore     {Move-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentAssociation, Get-Azure...
Script     0.11.0     AzureRM.MachineLearningCompute.N... {Get-AzureRmMlOpCluster, Get-AzureRmMlOpClusterKey, Test-AzureRmMlOpClusterSystemSe...
Script     0.11.0     AzureRM.MarketplaceOrdering.Netcore {Get-AzureRmMarketplaceTerms, Set-AzureRmMarketplaceTerms}                            
Script     0.11.0     AzureRM.Media.Netcore               {Sync-AzureRmMediaServiceStorageKeys, Set-AzureRmMediaServiceKey, Get-AzureRmMediaS...
Script     0.11.0     AzureRM.Netcore                                                                                                           
Manifest   0.10.0     AzureRM.Netcore                                                                                                           
Script     0.11.0     AzureRM.Network.Netcore             {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGate...
Script     0.10.0     AzureRM.Network.Netcore             {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGate...
Script     0.11.0     AzureRM.NotificationHubs.Netcore    {Get-AzureRmNotificationHub, Get-AzureRmNotificationHubAuthorizationRules, Get-Azur...
Script     0.11.0     AzureRM.OperationalInsights.Netcore {New-AzureRmOperationalInsightsAzureActivityLogDataSource, New-AzureRmOperationalIn...
Script     0.11.0     AzureRM.PowerBIEmbedded.Netcore     {Remove-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPowerBIWorkspaceCollection, G...
Script     0.11.0     AzureRM.Profile.Netcore             {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-AzureRmDataC...
Script     0.10.0     AzureRM.Profile.Netcore             {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-AzureRmDataC...
Script     0.11.0     AzureRM.RedisCache.Netcore          {Remove-AzureRmRedisCachePatchSchedule, New-AzureRmRedisCacheScheduleEntry, Get-Azu...
Script     0.11.0     AzureRM.Relay.Netcore               {New-AzureRmRelayNamespace, Get-AzureRmRelayNamespace, Set-AzureRmRelayNamespace, R...
Script     0.11.0     AzureRM.Resources.Netcore           {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignm...
Script     0.10.0     AzureRM.Resources.Netcore           {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignm...
Script     0.11.0     AzureRM.Scheduler.Netcore           {Disable-AzureRmSchedulerJobCollection, Enable-AzureRmSchedulerJobCollection, Get-A...
Script     0.11.0     AzureRM.ServiceBus.Netcore          {New-AzureRmServiceBusNamespace, Get-AzureRmServiceBusNamespace, Set-AzureRmService...
Script     0.11.0     AzureRM.ServiceFabric.Netcore       {Add-AzureRmServiceFabricApplicationCertificate, Add-AzureRmServiceFabricClientCert...
Script     0.11.0     AzureRM.Sql.Netcore                 {Get-AzureRmSqlDatabaseTransparentDataEncryption, Get-AzureRmSqlDatabaseTransparent...
Script     0.11.0     AzureRM.Storage.Netcore             {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount...
Script     0.10.0     AzureRM.Storage.Netcore             {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount...
Script     0.11.0     AzureRM.StreamAnalytics.Netcore     {Get-AzureRmStreamAnalyticsFunction, Get-AzureRmStreamAnalyticsDefaultFunctionDefin...
Script     0.11.0     AzureRM.Tags.Netcore                {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}                                   
Script     0.10.0     AzureRM.Tags.Netcore                {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}                                   
Script     0.11.0     AzureRM.TrafficManager.Netcore      {Disable-AzureRmTrafficManagerEndpoint, Enable-AzureRmTrafficManagerEndpoint, Set-A...
Script     0.11.0     AzureRM.UsageAggregates.Netcore     Get-UsageAggregates                                                                   
Script     0.11.0     AzureRM.Websites.Netcore            {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppServicePlan, R...
Script     0.10.0     AzureRM.Websites.Netcore            {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppServicePlan, R...

Environment Data

$PSVersionTable
Name                           Value                                                                                                            
----                           -----                                                                                                            
PSVersion                      6.0.2                                                                                                            
PSEdition                      Core                                                                                                             
GitCommitId                    v6.0.2                                                                                                           
OS                             Darwin 17.5.0 Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64    
Platform                       Unix                                                                                                             
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                          
PSRemotingProtocolVersion      2.3                                                                                                              
SerializationVersion           1.1.0.1                                                                                                          
WSManStackVersion              3.0

Debug Output

DEBUG: 15:42:33 - InvokeAzureRmVMRunCommand begin processing with ParameterSet 'DefaultParameter'.
DEBUG: 15:42:33 - using account id 'REMOVED_AS_SENSITIVE'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'REMOVED_AS_SENSITIVE', environment: 'AzureCloud', tenant: 'REMOVED_AS_SENSITIVE'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
REMOVED_AS_SENSITIVE

Headers:
x-ms-client-request-id        : REMOVED_AS_SENSITIVE
accept-language               : en-US

Body:
{
  "commandId": "RunShellScript",
  "script": [
    "docker ps"
  ]
}


DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
Accepted

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Location                      : REMOVED_AS_SENSITIVE
Azure-AsyncOperation          : REMOVED_AS_SENSITIVE
x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1192
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-served-by                : REMOVED_AS_SENSITIVE
x-ms-request-id               : REMOVED_AS_SENSITIVE
x-ms-ratelimit-remaining-subscription-writes: 1199
Server                        : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-correlation-request-id   : REMOVED_AS_SENSITIVE
x-ms-routing-request-id       : REMOVED_AS_SENSITIVE
X-Content-Type-Options        : nosniff
Date                          : Wed, 18 Apr 2018 12:42:33 GMT

Body:



DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
REMOVED_AS_SENSITIVE

Headers:

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29976
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-served-by                : REMOVED_AS_SENSITIVE
x-ms-request-id               : REMOVED_AS_SENSITIVE
Server                        : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 14998
x-ms-correlation-request-id   : REMOVED_AS_SENSITIVE
x-ms-routing-request-id       : REMOVED_AS_SENSITIVE
X-Content-Type-Options        : nosniff
Date                          : Wed, 18 Apr 2018 12:43:03 GMT

Body:
{
  "startTime": "2018-04-18T15:42:33.7502021+03:00",
  "endTime": "2018-04-18T15:42:48.6877604+03:00",
  "status": "Succeeded",
  "properties": {
    "output": [
      {
        "code": "ProvisioningState/succeeded",
        "level": "Info",
        "displayStatus": "Provisioning succeeded",
        "message": "Enable succeeded: \n[stdout]\nCONTAINER ID        IMAGE                                               COMMAND              CREATED             STATUS                 PORTS               NAMES\nREMOVED_AS_SENSITIVE   \"/something.sh\"   2 hours ago         Up 2 hours (healthy)                       something\n\n[stderr]\n"
      }
    ]
  },
  "name": "REMOVED_AS_SENSITIVE"
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
REMOVED_AS_SENSITIVE

Headers:

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29975
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-served-by                : REMOVED_AS_SENSITIVE
x-ms-request-id               : REMOVED_AS_SENSITIVE
Server                        : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 14997
x-ms-correlation-request-id   : REMOVED_AS_SENSITIVE
x-ms-routing-request-id       : REMOVED_AS_SENSITIVE
X-Content-Type-Options        : nosniff
Date                          : Wed, 18 Apr 2018 12:43:03 GMT

Body:
[{"code":"ProvisioningState/succeeded","level":"Info","displayStatus":"Provisioning succeeded","message":"Enable succeeded: \n[stdout]\nCONTAINER ID        IMAGE                                               COMMAND              CREATED             STATUS                 PORTS               NAMES\nREMOVED_AS_SENSITIVE   \"/something.sh\"   2 hours ago         Up 2 hours (healthy)                       something\n\n[stderr]\n"}]





DEBUG: AzureQoSEvent: CommandName - Invoke-AzureRmVMRunCommand; IsSuccess - True; Duration - 00:00:31.1142970; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 15:43:04 - InvokeAzureRmVMRunCommand end processing.
DEBUG: 15:43:04 - InvokeAzureRmVMRunCommand end processing.
@mcocak mcocak changed the title Invoke-AzureRmVMRunCommand returning empty Invoke-AzureRmVMRunCommand returns empty Apr 18, 2018
@cormacpayne
Copy link
Member

@mcocak Hey Mert, quick clarifying question: when you say that this was working last week, do you know if that was before or after you updated AzureRM.Netcore to the new 0.11.0 version?

@mcocak
Copy link
Author

mcocak commented Apr 19, 2018

I didn't do an intended update to AzureRM.Netcore but I uninstalled my existing version and reinstalled the module recently. So if there was a new version released meanwhile, the newer version was installed I suppose, where I started having this issue.

@ljtill
Copy link
Member

ljtill commented Apr 22, 2018

Also encountering this with the AzureRM modules (5.7.0 - April 2018).

Update:

After testing with -Debug it seems that the response does come back per below (message) however it doesn't output it on the Cmdlet.

Rolled back to the AzureRM modules (5.6.0 - March 2018), all working again.

Body:

{
  "startTime": "2018-04-22T12:57:03.0379341-05:00",
  "endTime": "2018-04-22T12:57:46.3975869-05:00",
  "status": "Succeeded",
  "properties": {
    "output": [
      {
        "code": "ComponentStatus/StdOut/succeeded",
        "level": "Info",
        "displayStatus": "Provisioning succeeded",
        "message": "5.1"
      },
      {
        "code": "ComponentStatus/StdErr/succeeded",
        "level": "Info",
        "displayStatus": "Provisioning succeeded",
        "message": ""
      }
    ]
  },
  "name": "**Removed**"
}

@bcreynolds
Copy link

This issue ended up breaking quite a few of our Azure runbooks after an automation account PowerShell module update.

Troubleshooting finding: When only AzureRM.profile v4.5.0 and AzureRM.Compute v4.5.0 modules are imported in an Azure runbook or interactive PowerShell v5.1 session, the issue does not occur until only the AzureRM.profile module version is updated to v4.6.0. At that point, all properties are always null for any Invoke-AzureRmVMRunCommand PSRunCommandResult return object.

@amoghnatu
Copy link

Were you running this Cmdlet from a runbook of type PowerShell or PowerShell Workflow? I've seen that this returns empty when executed within a Workflow. Discussed the same with one of the Azure Automation Product group employees and it is expected that way in Workflows.

If you want it to get proper output from it, run it within an InlineScript { } block in the Workflow runbook. And return, from the block, whatever it is that you want to use further.

@bcreynolds
Copy link

Returns output in an Azure runbook of type Powershell (not workflow) when the AzureRM.profile module is v4.5. Does not return output in the same PowerShell runbook after update of AzureRM.profile module to v4.6.

@wkasdorp
Copy link

wkasdorp commented Jun 6, 2018

I confirm this breaking change, or bug if you will. In my particular case it breaks a VSTS provisioning pipeline where we verify the output before moving to the next step. I also confirm that moving back to 5.6.0 is a workaround.

From the context of this issue I cannot really tell what is being done and when it will be fixed. Any update that you can share?

@amoghnatu
Copy link

There was a new release yesterday and the AzureRM.Compute module was also released as part of that. However, this issue still exists even in the latest release. We're also waiting for this to be fixed.

@markcowl markcowl modified the milestones: 2018-06-01, 2018-06-15 Jun 7, 2018
@jamesmealing
Copy link

As above. Any idea when this might be fixed? This has broken the majority of our Azure Automation Runbooks by updating to the latest AzureRM modules... :(

@maddieclayton maddieclayton modified the milestones: 2018-06-15, 2018-06-29 Jun 19, 2018
@jamesmealing
Copy link

Are there any updates on this at all? Preferably including an expected fix date...?!

@amoghnatu
Copy link

@jamesmealing As a temporary workaround, you can use the REST API. Rest API is working fine and returning expected output. So as a workaround, you can use that if it helps you. We're also using the same for the moment until this fix comes through.

@twitchax twitchax assigned hyonholee and unassigned mcocak Jun 28, 2018
@twitchax
Copy link
Contributor

@hyonholee or @alpon, can you please take a look at this? This issue is a regression, as far as we can tell.

@twitchax
Copy link
Contributor

@hyonholee, synced with @Aleksandair offline. Do you have an ETA that we can share?

@cormacpayne
Copy link
Member

CC: @praries880

@stefanstranger
Copy link

stefanstranger commented Jul 12, 2018

I can confirm the issue using the Invoke-AzureRMVmRunCommand with version 5.2.0 of the AzureRM.Computer PowerShell Module.

I 'solved' the issue by creating my own PowerShell Function which calls the Azure REST API directly. Most important thing is that after calling the PUT request to run a command on the VM you need to receive a Response Header with location information to query the status of the first call.

In my case I used Invoke-WebRequest instead of Invoke-RestMethod because the latter does not return a Response Header and Invoke-WebRequest does.

Example code:

#region Connect to Azure
Add-AzureRmAccount
#Select Azure Subscription
$Subscription = 
(Get-AzureRmSubscription |
        Out-GridView `
        -Title 'Select an Azure Subscription ...' `
        -PassThru)
Set-AzureRmContext -SubscriptionId $Subscription.Id -TenantId $Subscription.TenantID
#endregion

#region Get AccessToken
$currentAzureContext = Get-AzureRmContext
$azureRmProfile = [Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureRmProfileProvider]::Instance.Profile
$profileClient = New-Object -TypeName Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient -ArgumentList ($azureRmProfile)
$token = $profileClient.AcquireAccessToken($currentAzureContext.Subscription.TenantId)
#endregion

#region variables
$ResourceGroupName = 'STEFAN-D-RG'
$VMName = 'foo-d-web'
#endregion


#region we need to get a response header to retrieve the Azure-AsyncOperation
$APIVersion = '2017-12-01'
$Uri = 'https://management.azure.com/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Compute/virtualMachines/{2}/runCommand?api-version={3}' -f $Subscription.Id, $resourcegroupname, $VMName, $APIVersion

$Body = @{
    'commandid'  = 'RunPowerShellScript'
    'script'     = @('Get-Date')
    'parameters' = @()
} | ConvertTo-Json -Compress 


$params = @{
    ContentType     = 'application/json;charset=utf-8'
    Headers         = @{
        'authorization' = "Bearer $($token.AccessToken)"
    }
    Method          = 'Post'
    URI             = $Uri
    Body            = $Body
    UseBasicParsing = $true
   
}

Invoke-WebRequest @params -OutVariable Result
#endregion


#region retrieve status of web request
$Result.Headers.Location
$Uri = $Result.Headers.Location
$params = @{
    ContentType = 'application/json;charset=utf-8'
    Headers     = @{
        'authorization' = "Bearer $($token.AccessToken)"
    }
    Method      = 'Get'
    URI         = $Uri
}

$Status = $null
while (!($Status)) {
    try {
        $Status = Invoke-RestMethod @params
        Start-Sleep 15
    }
    catch {
        'Oops'
    }
        
}
$Status
#endregion

HTH
Stefan [MSFT]

cc @alexandair

@markcowl
Copy link
Member

@praries880 Can you work with hyonho to ensure that this is fixed in the next milestone?

@markcowl markcowl modified the milestones: 2018-07-27, 2018-08-10 Jul 26, 2018
@praries880
Copy link
Contributor

This got fixed in #6720

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute - VM Compute Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests