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

{AzureCompute} Include the ProvisioningState value in Get-AzVMRunCommand output #21490

Merged
merged 5 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Compute/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
## Upcoming Release
* Added a breaking change warning to the `Get-AzVM` cmdlet to show that the `NextLink` parameter and parameter set will be removed in June 2023. The parameter has been non-functional for a long time.
* Updated the breaking change warning in `New-AzVM` and `New-AzVmss` regarding using the new versioned image aliases to indicate that certain aliases will be removed next breaking change release.
* Updated the `Get-AzVMRunCommand` to include the `ProvisioningState` value. Fix [#21473]
* Updated Azure.Core to 1.30.0.


## Version 5.7.0
* Addressed bug in `Remove-AzVmss` to throw error when `-InstanceId` is null. [#21162]
* Added `-CustomData`, `-AdminPassword`, and `-ExactVersion` parameters to `Invoke-AzVMReimage`.
Expand Down
4 changes: 2 additions & 2 deletions src/Compute/Compute/Manual/PSVirtualMachineRunCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class PSVirtualMachineRunCommand
public int? TimeoutInSeconds { get; set; }
public string OutputBlobUri { get; set; }
public string ErrorBlobUri { get; set; }
public string ProvisioningState { get; }
public string ProvisioningState { get; set; }
public VirtualMachineRunCommandInstanceView InstanceView { get; set; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public override void ExecuteCmdlet()
VirtualMachineRunCommand vmRc = VirtualMachineRunCommandsClient.GetByVirtualMachine(this.ResourceGroupName, this.VMName, this.RunCommandName, this.Expand);
PSVirtualMachineRunCommand psObject = new PSVirtualMachineRunCommand();
ComputeAutomationAutoMapperProfile.Mapper.Map<VirtualMachineRunCommand, PSVirtualMachineRunCommand>(vmRc, psObject);
psObject.ProvisioningState = vmRc.ProvisioningState;
WriteObject(psObject);
}
else
Expand Down