-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove-AzsPlatformImage Does Not Return Anything #44
Comments
@deathly809 @hannah-murphy-0 please provide inputs here |
It looks like it never returned a boolean value which is weird. It looks like it should delete asynchronously from the code. I will keep looking. |
@bganapa Isn't the powershell and documentation automatically generated? If you look at the API spec we don't specify anything about booleans for delete. Perhaps AutoRest made a mistake?
|
@deathly809 Sorry, I have been busy. Should the platform image be removed instantaneously? Last I remembered the command doesn't wait until the resource is deleted and also gives no warning of taking time to remove the resource. I think it would be better user experience to make the API more uniform with other commands like Remove-AzResourceGroup where it waits for the resource to be deleted while also returning a Boolean explaining that the removal was successful. |
I will create an internal task to see if we can get some cycles to look at this issue.
Just to be clear, the seccond is all in the PowerShell and is created using AutoRest. I am not sure why it is treating the endpoint different. |
@hannah-murphy-0 can you provide your inputs here? |
For the AzureStack modules that are used with AzureRM, when you run a command like this:
Remove-AzsPlatformImage -Location local -Offer UbuntuServer -Publisher Canonical -Sku 16.04-LTS -Version 1.0.0
Nothing is returned. However it reportedly should return a boolean according to its documentation:
https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/remove-azsplatformimage?view=azurestackps-2.0.2&viewFallbackFrom=azurestackps-2.5.0
Another issue is that it doesn't seem to remove the image immediately, but this is not documented anywhere. The command does not stall until the removal is complete, so either that feature should be implemented or a warning given to the user.
This issue should be verified with the AzureStack modules that are used with the newer Az modules as well.
The text was updated successfully, but these errors were encountered: