Skip to content

Commit c758c4c

Browse files
committed
update examples
1 parent 1fe5252 commit c758c4c

10 files changed

+62
-125
lines changed

src/Compute/Compute.Autorest/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@
2424
[assembly: System.Reflection.AssemblyVersionAttribute("10.1.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27-

src/Compute/Compute.Autorest/docs/New-AzGalleryApplication.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,12 @@ Create or update a gallery Application Definition.
4545

4646
## EXAMPLES
4747

48-
### Example 1: {{ Add title here }}
48+
### Example 1: Create a gallery application
4949
```powershell
50-
{{ Add code here }}
50+
New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
5151
```
5252

53-
```output
54-
{{ Add output here (remove the output block if the example doesn't have an output) }}
55-
```
56-
57-
{{ Add description here }}
58-
59-
### Example 2: {{ Add title here }}
60-
```powershell
61-
{{ Add code here }}
62-
```
63-
64-
```output
65-
{{ Add output here (remove the output block if the example doesn't have an output) }}
66-
```
67-
68-
{{ Add description here }}
53+
Creating a Gallery Application in a Gallery.
6954

7055
## PARAMETERS
7156

src/Compute/Compute.Autorest/docs/New-AzGalleryApplicationVersion.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,19 @@ Create or update a gallery Application Version.
6262

6363
## EXAMPLES
6464

65-
### Example 1: {{ Add title here }}
65+
### Example 1: Create a gallery application version.
6666
```powershell
67-
{{ Add code here }}
67+
$ctx = New-AzStorageContext -StorageAccountName $storAccName
68+
$SASToken = New-AzStorageBlobSASToken -Context $ctx -Container $containerName -blob $blobName -Permission r
69+
$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
70+
$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
71+
$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
72+
$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + $SASToken
73+
New-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -Install "powershell -command 'Expand-Archive -Path package.zip -DestinationPath C:\\package\'" -Remove "del C:\\package"
6874
```
6975

70-
```output
71-
{{ Add output here (remove the output block if the example doesn't have an output) }}
72-
```
73-
74-
{{ Add description here }}
75-
76-
### Example 2: {{ Add title here }}
77-
```powershell
78-
{{ Add code here }}
79-
```
80-
81-
```output
82-
{{ Add output here (remove the output block if the example doesn't have an output) }}
83-
```
84-
85-
{{ Add description here }}
76+
Creating a Gallery Application Version.
77+
Using SAS Uri for the blob for PackageFileLink.
8678

8779
## PARAMETERS
8880

src/Compute/Compute.Autorest/docs/Update-AzGalleryApplicationVersion.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,27 +70,19 @@ Update a gallery Application Version.
7070

7171
## EXAMPLES
7272

73-
### Example 1: {{ Add title here }}
73+
### Example 1: Update Replica Count of Gallery Application Version
7474
```powershell
75-
{{ Add code here }}
75+
$ctx = New-AzStorageContext -StorageAccountName $storAccName
76+
$SASToken = New-AzStorageBlobSASToken -Context $ctx -Container $containerName -blob $blobName -Permission r
77+
$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
78+
$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
79+
$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
80+
$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
81+
Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
7682
```
7783

78-
```output
79-
{{ Add output here (remove the output block if the example doesn't have an output) }}
80-
```
81-
82-
{{ Add description here }}
83-
84-
### Example 2: {{ Add title here }}
85-
```powershell
86-
{{ Add code here }}
87-
```
88-
89-
```output
90-
{{ Add output here (remove the output block if the example doesn't have an output) }}
91-
```
92-
93-
{{ Add description here }}
84+
Updating a Gallery Application Version's replica count.
85+
Using SAS Uri for the blob for PackageFileLink.
9486

9587
## PARAMETERS
9688

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "98ec6648-3aab-47f6-82a6-1a8856d66168"
2+
"generate_Id": "86d9f7c9-26cc-43a3-af2f-6b960af3e940"
33
}

src/Compute/Compute.sln

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ManagedServiceIdentity",
4949
EndProject
5050
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Compute.Autorest", "Compute.Autorest", "{18C4E64E-9E36-9EC3-08A5-34B2FE79BAE7}"
5151
EndProject
52-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Compute", "..\..\generated\Compute\Compute.Autorest\Az.Compute.csproj", "{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}"
52+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Compute", "..\..\generated\Compute\Compute.Autorest\Az.Compute.csproj", "{175525F9-04F8-470C-8803-6CB296BF126F}"
5353
EndProject
5454
Global
5555
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -289,18 +289,18 @@ Global
289289
{443B0412-6B55-4F5B-B6C3-9B26C6F49ECB}.Release|x64.Build.0 = Release|Any CPU
290290
{443B0412-6B55-4F5B-B6C3-9B26C6F49ECB}.Release|x86.ActiveCfg = Release|Any CPU
291291
{443B0412-6B55-4F5B-B6C3-9B26C6F49ECB}.Release|x86.Build.0 = Release|Any CPU
292-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
293-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
294-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Debug|x64.ActiveCfg = Debug|Any CPU
295-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Debug|x64.Build.0 = Debug|Any CPU
296-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Debug|x86.ActiveCfg = Debug|Any CPU
297-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Debug|x86.Build.0 = Debug|Any CPU
298-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
299-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Release|Any CPU.Build.0 = Release|Any CPU
300-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Release|x64.ActiveCfg = Release|Any CPU
301-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Release|x64.Build.0 = Release|Any CPU
302-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Release|x86.ActiveCfg = Release|Any CPU
303-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5}.Release|x86.Build.0 = Release|Any CPU
292+
{175525F9-04F8-470C-8803-6CB296BF126F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
293+
{175525F9-04F8-470C-8803-6CB296BF126F}.Debug|Any CPU.Build.0 = Debug|Any CPU
294+
{175525F9-04F8-470C-8803-6CB296BF126F}.Debug|x64.ActiveCfg = Debug|Any CPU
295+
{175525F9-04F8-470C-8803-6CB296BF126F}.Debug|x64.Build.0 = Debug|Any CPU
296+
{175525F9-04F8-470C-8803-6CB296BF126F}.Debug|x86.ActiveCfg = Debug|Any CPU
297+
{175525F9-04F8-470C-8803-6CB296BF126F}.Debug|x86.Build.0 = Debug|Any CPU
298+
{175525F9-04F8-470C-8803-6CB296BF126F}.Release|Any CPU.ActiveCfg = Release|Any CPU
299+
{175525F9-04F8-470C-8803-6CB296BF126F}.Release|Any CPU.Build.0 = Release|Any CPU
300+
{175525F9-04F8-470C-8803-6CB296BF126F}.Release|x64.ActiveCfg = Release|Any CPU
301+
{175525F9-04F8-470C-8803-6CB296BF126F}.Release|x64.Build.0 = Release|Any CPU
302+
{175525F9-04F8-470C-8803-6CB296BF126F}.Release|x86.ActiveCfg = Release|Any CPU
303+
{175525F9-04F8-470C-8803-6CB296BF126F}.Release|x86.Build.0 = Release|Any CPU
304304
EndGlobalSection
305305
GlobalSection(SolutionProperties) = preSolution
306306
HideSolutionNode = FALSE
@@ -320,6 +320,6 @@ Global
320320
{DAD5BF2B-686B-4269-8FFA-5A86D7C23A31} = {6781D587-D8BB-48B9-9952-B05F3D237606}
321321
{F45CEC09-0408-43D6-A679-5149715D9904} = {E9336DDF-EEF7-474E-BCF1-ED87313F4D17}
322322
{2B0B2D44-5207-4192-894E-9AB8DEE6F791} = {6781D587-D8BB-48B9-9952-B05F3D237606}
323-
{4A83BC3C-A276-4DC3-80D3-2BF4CF20E3D5} = {18C4E64E-9E36-9EC3-08A5-34B2FE79BAE7}
323+
{175525F9-04F8-470C-8803-6CB296BF126F} = {18C4E64E-9E36-9EC3-08A5-34B2FE79BAE7}
324324
EndGlobalSection
325325
EndGlobal

src/Compute/Compute/Az.Compute.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 2025-07-29
6+
# Generated on: 2025-07-31
77
#
88

99
@{

src/Compute/Compute/help/New-AzGalleryApplication.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,12 @@ Create or update a gallery Application Definition.
4646

4747
## EXAMPLES
4848

49-
### Example 1: {{ Add title here }}
49+
### Example 1: Create a gallery application
5050
```powershell
51-
{{ Add code here }}
51+
New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
5252
```
5353

54-
```output
55-
{{ Add output here (remove the output block if the example doesn't have an output) }}
56-
```
57-
58-
{{ Add description here }}
59-
60-
### Example 2: {{ Add title here }}
61-
```powershell
62-
{{ Add code here }}
63-
```
64-
65-
```output
66-
{{ Add output here (remove the output block if the example doesn't have an output) }}
67-
```
68-
69-
{{ Add description here }}
54+
Creating a Gallery Application in a Gallery.
7055

7156
## PARAMETERS
7257

src/Compute/Compute/help/New-AzGalleryApplicationVersion.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,19 @@ Create or update a gallery Application Version.
6363

6464
## EXAMPLES
6565

66-
### Example 1: {{ Add title here }}
66+
### Example 1: Create a gallery application version.
6767
```powershell
68-
{{ Add code here }}
68+
$ctx = New-AzStorageContext -StorageAccountName $storAccName
69+
$SASToken = New-AzStorageBlobSASToken -Context $ctx -Container $containerName -blob $blobName -Permission r
70+
$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
71+
$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
72+
$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
73+
$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + $SASToken
74+
New-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -Install "powershell -command 'Expand-Archive -Path package.zip -DestinationPath C:\\package\'" -Remove "del C:\\package"
6975
```
7076

71-
```output
72-
{{ Add output here (remove the output block if the example doesn't have an output) }}
73-
```
74-
75-
{{ Add description here }}
76-
77-
### Example 2: {{ Add title here }}
78-
```powershell
79-
{{ Add code here }}
80-
```
81-
82-
```output
83-
{{ Add output here (remove the output block if the example doesn't have an output) }}
84-
```
85-
86-
{{ Add description here }}
77+
Creating a Gallery Application Version.
78+
Using SAS Uri for the blob for PackageFileLink.
8779

8880
## PARAMETERS
8981

src/Compute/Compute/help/Update-AzGalleryApplicationVersion.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -69,27 +69,19 @@ Update a gallery Application Version.
6969

7070
## EXAMPLES
7171

72-
### Example 1: {{ Add title here }}
72+
### Example 1: Update Replica Count of Gallery Application Version
7373
```powershell
74-
{{ Add code here }}
74+
$ctx = New-AzStorageContext -StorageAccountName $storAccName
75+
$SASToken = New-AzStorageBlobSASToken -Context $ctx -Container $containerName -blob $blobName -Permission r
76+
$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
77+
$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
78+
$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
79+
$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
80+
Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
7581
```
7682

77-
```output
78-
{{ Add output here (remove the output block if the example doesn't have an output) }}
79-
```
80-
81-
{{ Add description here }}
82-
83-
### Example 2: {{ Add title here }}
84-
```powershell
85-
{{ Add code here }}
86-
```
87-
88-
```output
89-
{{ Add output here (remove the output block if the example doesn't have an output) }}
90-
```
91-
92-
{{ Add description here }}
83+
Updating a Gallery Application Version's replica count.
84+
Using SAS Uri for the blob for PackageFileLink.
9385

9486
## PARAMETERS
9587

0 commit comments

Comments
 (0)