azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Insufficient Documentation to use the Cmdlet

Open Vegas588 opened this issue 2 years ago • 4 comments

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

Vegas588 avatar Jun 27 '24 18:06 Vegas588

@Alex-wdy, Can you look into this? @firrasaltaher and @ThairAbdalla reached out to me about the same command.

mikefrobbins avatar Jul 11 '24 20:07 mikefrobbins

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.

firrasaltaher avatar Jul 11 '24 22:07 firrasaltaher

@adana-popescu @KalpeshChavan12 @ralucaminea Can you take a look at this issue?

CC @isra-fel

Alex-wdy avatar Jul 13 '24 02:07 Alex-wdy

Hello, the documentation look the same after 1y, can please fix this to can use it correctly, Thanks.

lemusjimmy avatar Jul 17 '25 14:07 lemusjimmy