Skip to content

Commit 078b3ce

Browse files
author
Mohamed Yilmaz Ibrahim
committed
Updated the command examples
1 parent 59a4c0d commit 078b3ce

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/azure-cli/azure/cli/command_modules/identity/aaz/latest/identity/_create.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
)
1717
class Create(AAZCommand):
1818
"""Create an identity in the specified subscription and resource group.
19+
20+
:example: Create an identity with a name and a resource group.
21+
az identity create --name myIdentityName --resource-group myResourceGroup
22+
23+
:example: Create an identity using the resource restrictions and isolation scope parameter.
24+
az identity create --name myIdentityName --resource-group myResourceGroup --resource-restriction {"providers":["Microsoft.Compute"]} --isolation-scope Regional
1925
"""
2026

2127
_aaz_info = {

src/azure-cli/azure/cli/command_modules/identity/aaz/latest/identity/_update.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
)
1717
class Update(AAZCommand):
1818
"""Update an identity in the specified subscription and resource group.
19+
20+
:example: Update an identity's isolation scope with a name and resource group.
21+
az identity update --name myIdentityName --resource-group myResourceGroup --isolation-scope None
22+
23+
:example: Update an identity using the resource restrictions and isolation scope parameter.
24+
az identity update --name myIdentityName --resource-group myResourceGroup --resource-restriction {"providers":["Microsoft.Storage"]} --isolation-scope Regional
1925
"""
2026

2127
_aaz_info = {

0 commit comments

Comments
 (0)