Skip to content

Commit 00d7e46

Browse files
authored
Generate code for sig identity (#977)
2 parents 7ac03eb + 76c1e11 commit 00d7e46

11 files changed

Lines changed: 1748 additions & 0 deletions

File tree

Commands/sig/_create.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,29 @@ Create a shared image gallery.
2525
```bash
2626
sig create --resource-group MyResourceGroup --gallery-name MyGallery
2727
```
28+
29+
### [2025-03-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2025-03-03.xml) **Stable**
30+
31+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{} 2025-03-03 -->
32+
33+
#### examples
34+
35+
- Create a shared image gallery
36+
```bash
37+
sig create --resource-group MyResourceGroup --gallery-name MyGallery
38+
```
39+
40+
- Create a shared image gallery with enabled system assigned identity.
41+
```bash
42+
sig create --resource-group MyResourceGroup --gallery-name MyGallery123 --system-assigned
43+
```
44+
45+
- Create a shared image gallery with a user assigned identity.
46+
```bash
47+
sig create --resource-group MyResourceGroup --gallery-name MyGallery123 --user-assigned id1
48+
```
49+
50+
- Create a shared image gallery with both system and user assigned identity.
51+
```bash
52+
sig create --resource-group MyResourceGroup --gallery-name MyGallery123 --system-assigned --user-assigned id1
53+
```

Commands/sig/_delete.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ Delete a Shared Image Gallery.
1111
### [2021-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2021-10-01.xml) **Stable**
1212

1313
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{} 2021-10-01 -->
14+
15+
### [2025-03-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2025-03-03.xml) **Stable**
16+
17+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{} 2025-03-03 -->

Commands/sig/_show.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ Retrieve information about a Shared Image Gallery.
1111
### [2021-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2021-10-01.xml) **Stable**
1212

1313
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{} 2021-10-01 -->
14+
15+
### [2025-03-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2025-03-03.xml) **Stable**
16+
17+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{} 2025-03-03 -->

Commands/sig/_update.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,19 @@ Update a Shared Image Gallery.
2323
```bash
2424
sig update -g myResourceGroup --gallery-name myGallery --permissions Community --publisher-uri myPublisherUri --publisher-email myPublisherEmail --eula myEula --public-name-prefix myPublicNamePrefix
2525
```
26+
27+
### [2025-03-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2025-03-03.xml) **Stable**
28+
29+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{} 2025-03-03 -->
30+
31+
#### examples
32+
33+
- Enable gallery to be shared to subscription or tenant
34+
```bash
35+
sig update --resource-group myResourceGroup --gallery-name myGallery --permissions groups
36+
```
37+
38+
- Update gallery from private to community
39+
```bash
40+
sig update -g myResourceGroup --gallery-name myGallery --permissions Community --publisher-uri myPublisherUri --publisher-email myPublisherEmail --eula myEula --public-name-prefix myPublicNamePrefix
41+
```

Commands/sig/identity/_assign.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# [Command] _sig identity assign_
2+
3+
Assign the user or system managed identities.
4+
5+
## Versions
6+
7+
### [2025-03-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2025-03-03.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{} 2025-03-03 identity -->
10+
11+
#### examples
12+
13+
- Enable the system assigned identity.
14+
```bash
15+
sig identity assign -g MyResourceGroup -r MyGalleryName --system-assigned
16+
```
17+
18+
- Add a user assigned identity.
19+
```bash
20+
sig identity assign -g MyResourceGroup -r MyGalleryName --user-assigned id1
21+
```
22+
23+
- Add 2 user assigned identities.
24+
```bash
25+
sig identity assign -g MyResourceGroup -r MyGalleryName --user-assigned id1 id2
26+
```
27+
28+
- Enable system assigned identity and add a user assigned identity.
29+
```bash
30+
sig identity assign -g MyResourceGroup -r MyGalleryName --system-assigned --user-assigned id1
31+
```

Commands/sig/identity/_remove.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# [Command] _sig identity remove_
2+
3+
Remove the user or system managed identities.
4+
5+
## Versions
6+
7+
### [2025-03-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2025-03-03.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{} 2025-03-03 identity -->
10+
11+
#### examples
12+
13+
- Remove the system assigned identity.
14+
```bash
15+
sig identity remove -g myResourceGroup -r myGalleryName --system-assigned
16+
```
17+
18+
- Remove a user assigned identity.
19+
```bash
20+
sig identity remove -g myResourceGroup -r myGalleryName --user-assigned id1
21+
```
22+
23+
- Remove 2 user assigned identities.
24+
```bash
25+
sig identity remove -g myResourceGroup -r myGalleryName --user-assigned id1 id2
26+
```
27+
28+
- Remove all user assigned identities.
29+
```bash
30+
sig identity remove -g myResourceGroup -r myGalleryName --user-assigned
31+
```
32+
33+
- Remove the system assigned ientity and user assigned identity.
34+
```bash
35+
sig identity remove -g myResourceGroup -r myGalleryName --system-assigned --user-assigned
36+
```

Commands/sig/identity/_show.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _sig identity show_
2+
3+
Show the details of managed identities.
4+
5+
## Versions
6+
7+
### [2025-03-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2025-03-03.xml) **Stable**
8+
9+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{} 2025-03-03 identity -->
10+
11+
#### examples
12+
13+
- Show the managed identity.
14+
```bash
15+
sig identity show -g myResourceGroup -r myGalleryName
16+
```

Commands/sig/identity/readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# [Group] _sig identity_
2+
3+
Manage Identity
4+
5+
## Commands
6+
7+
- [assign](/Commands/sig/identity/_assign.md)
8+
: Assign the user or system managed identities.
9+
10+
- [remove](/Commands/sig/identity/_remove.md)
11+
: Remove the user or system managed identities.
12+
13+
- [show](/Commands/sig/identity/_show.md)
14+
: Show the details of managed identities.

Commands/sig/readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Manage shared image gallery.
77
- [gallery-application](/Commands/sig/gallery-application/readme.md)
88
: Manage gallery application.
99

10+
- [identity](/Commands/sig/identity/readme.md)
11+
: Manage Identity
12+
1013
- [image-definition](/Commands/sig/image-definition/readme.md)
1114
: Manage shared gallery image with VM
1215

Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fQ==/2025-03-03.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)