-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update command 'az sig create' and add new commands 'az sig identity assign', 'az sig identity show', 'az sig identity remove' #32814
Description
Preconditions
- No need to upgrade Python SDK or the Python SDK is ready.
Related command
az sig create
-gallery-name
--resource-group
[--identities]
az sig identity assign
[--identities]
[--gallery-name]
[--ids]
[--resource-group]
[--subscription]
az sig show
[--gallery-name]
[--ids]
[--resource-group]
[--subscription]
az sig identity show
[--gallery-name]
[--ids]
[--resource-group]
[--subscription]
az sig identity remove
[--identities]
[--gallery-name]
[--ids]
[--resource-group]
[--subscription]
Resource Provider
Microsoft.Compute/Gallery
Description of Feature or Work Requested
Azure gallery API has been updated to accept user assigned or system assigned managed identity in the request body and response body.
example
PUT /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName
{
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2025-03-03",
"galleryName": "myGalleryName",
"gallery": {
"location": "West US",
"identity": {
"type": "SystemAssigned, UserAssigned",
"userAssignedIdentities": {
"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity": {}
}
},
"properties": {
"description": "This is the gallery description."
}
}
}
NOTE: the field "identity" is newly introduced, it is optional.
Commands that need update
az sig create
az sig show
New Commands
az sig identity assign
az sig identity show
az sig identity remove
Please follow the conventions established with az vm identity for the parameter [--identities]
Minimum API Version Required
2025-03-03
Swagger PR link / SDK link
Azure/azure-rest-api-specs#30885
Azure/azure-rest-api-specs#32748
Request Example
Target Date
2026-04-15