Insufficient Documentation to use the Cmdlet
Type of issue
Missing information
Feedback
The documentation and examples for the Remove-AzConfigurationAssignment cmdlet are completely insufficient to actually use the cmdlet in automation. Please provide better examples so that your customers can use this cmdlet. Examples of what we need are below.
-ResourceType: We have tried every combination we can think of for this parameter. What are valid values for this?
-ProviderName: Is this Microsoft.Compute or Microsoft.Maintenance?
-ConfigurationAssignmentName: Where is this found? based on a Az Graph Query, there is a name populated with some random characters. We assume this is the name, but not clear.
-ResourceName: Where to find this and how does it differ from -ConfigurationAssignmentName?
-ResourceParentType: What is this and what are the possible values?
-ResourceParentName: Where to find this?
We have tried many combinations over and over again, but are frequently hit with errors like this that are too vague to know how to fix it:
{
"Error": {
"Code": "InvalidResource",
"Message": "Invalid configurationAssignment"
}
}
Page URL
https://learn.microsoft.com/en-us/powershell/module/az.maintenance/remove-azconfigurationassignment?view=azps-12.0.0
Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/Maintenance/Maintenance/help/Remove-AzConfigurationAssignment.md
Author
@mikefrobbins
Document Id
cab3efa2-562c-4e4c-1883-515770785b70
@Alex-wdy, Can you look into this? @firrasaltaher and @ThairAbdalla reached out to me about the same command.
Hey @Alex-wdy , the documentation was hard to follow with the example present. I agree with the questions listed above, that having more meaningful information about each of the parameters, such as acceptable values and more examples, would greatly benefit others wanting to use this and the Get-AzConfigurationAssignment modules. I had to look up the REST API documentation and look at how one could run it using python (https://learn.microsoft.com/en-us/rest/api/maintenance/configuration-assignments/get?view=rest-maintenance-2023-09-01-preview&tabs=Python) in order to break down how the cmdlets worked.
@adana-popescu @KalpeshChavan12 @ralucaminea Can you take a look at this issue?
CC @isra-fel
Hello, the documentation look the same after 1y, can please fix this to can use it correctly, Thanks.