Skip to content

Commit

Permalink
Update Create-Azure-Bastion-shareable-link.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
wimmatthyssen authored Mar 23, 2023
1 parent d258229 commit e0db2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Create-Azure-Bastion-shareable-link.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ $body = @{vms = @(@{vm = @{id = $(($vmObject).Id) }})} | ConvertTo-Json -Depth 1
# Send an HTTP or HTTPS request to a REST API endpoint
Invoke-WebRequest -Uri $uri -Authentication $authenticationType -Token $token -Method $method -Body $body -ContentType $contentType | Out-Null

# Wait for the link to be created. This is to avoid the error "The link is not ready yet. Please try again later."
# Wait for the link to be created, to avoid errors
Write-Host ($writeEmptyLine + "# Waiting for the shareable link for VM $vmName to be created" + $writeSeperatorSpaces + $currentTime)`
-foregroundcolor $foregroundColor2 $writeEmptyLine

Expand Down

0 comments on commit e0db2d5

Please sign in to comment.