diff --git a/src/Compute/Compute.Autorest/Az.Compute.format.ps1xml b/src/Compute/Compute.Autorest/Az.Compute.format.ps1xml
index 10e2075df83d..0b968171ba75 100644
--- a/src/Compute/Compute.Autorest/Az.Compute.format.ps1xml
+++ b/src/Compute/Compute.Autorest/Az.Compute.format.ps1xml
@@ -96,67 +96,51 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ApiError
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.CommunityGalleryInfo
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ApiError
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.CommunityGalleryInfo
-
+
-
+
-
+
-
-
-
-
-
- Code
-
-
- Message
-
-
- Target
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ApiErrorBase
-
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ApiErrorBase
-
-
-
-
+
-
+
-
+
- Code
+ CommunityGalleryEnabled
- Message
+ Eula
- Target
+ PublicName
+
+
+ PublicNamePrefix
+
+
+ PublisherContact
+
+
+ PublisherUri
@@ -164,9 +148,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.DataDiskImageEncryption
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.DataDiskImageEncryption
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.DataDiskImageEncryption
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.DataDiskImageEncryption
@@ -192,9 +176,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Disallowed
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.Disallowed
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Disallowed
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.Disallowed
@@ -214,9 +198,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.DiskImageEncryption
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.DiskImageEncryption
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.DiskImageEncryption
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.DiskImageEncryption
@@ -236,9 +220,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Gallery
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.Gallery
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Gallery
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.Gallery
@@ -264,9 +248,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplication
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplication
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplication
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplication
@@ -292,9 +276,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationList
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationList
@@ -314,9 +298,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationProperties
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationProperties
@@ -366,9 +350,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationUpdate
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationUpdate
@@ -388,9 +372,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersion
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersion
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersion
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersion
@@ -416,9 +400,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersionList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionList
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersionList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionList
@@ -438,9 +422,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionProperties
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionProperties
@@ -460,9 +444,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersionPublishingProfile
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionPublishingProfile
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersionPublishingProfile
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionPublishingProfile
@@ -518,9 +502,31 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersionUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionPublishingProfileAdvancedSettings
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionPublishingProfileAdvancedSettings
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionUpdate
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryApplicationVersionUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryApplicationVersionUpdate
@@ -540,9 +546,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryArtifactPublishingProfileBase
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryArtifactPublishingProfileBase
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryArtifactPublishingProfileBase
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryArtifactPublishingProfileBase
@@ -592,9 +598,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryArtifactVersionSource
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryArtifactVersionSource
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryArtifactVersionSource
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryArtifactVersionSource
@@ -614,9 +620,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryDataDiskImage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryDataDiskImage
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryDataDiskImage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryDataDiskImage
@@ -660,9 +666,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryDiskImage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryDiskImage
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryDiskImage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryDiskImage
@@ -688,9 +694,31 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryIdentifier
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryExtendedLocation
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryIdentifier
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryExtendedLocation
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryIdentifier
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryIdentifier
@@ -710,9 +738,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImage
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImage
@@ -738,9 +766,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageFeature
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageFeature
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageFeature
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageFeature
@@ -766,9 +794,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageIdentifier
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageIdentifier
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageIdentifier
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageIdentifier
@@ -800,9 +828,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageList
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageList
@@ -822,12 +850,15 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageProperties
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageProperties
+
+
+
@@ -859,6 +890,9 @@
+
+ Architecture
+
Description
@@ -892,9 +926,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageUpdate
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageUpdate
@@ -914,9 +948,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersion
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersion
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersion
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersion
@@ -942,9 +976,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersionList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersionList
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersionList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersionList
@@ -964,9 +998,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersionProperties
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersionProperties
@@ -986,9 +1020,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersionPublishingProfile
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersionPublishingProfile
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersionPublishingProfile
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersionPublishingProfile
@@ -1038,9 +1072,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersionUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersionUpdate
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryImageVersionUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryImageVersionUpdate
@@ -1060,9 +1094,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryList
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryList
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryList
@@ -1082,9 +1116,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryOSDiskImage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryOSDiskImage
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryOSDiskImage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryOSDiskImage
@@ -1122,9 +1156,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryProperties
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryProperties
@@ -1150,43 +1184,49 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryTargetExtendedLocation
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.GalleryUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryTargetExtendedLocation
+
+
+
+
+
+
+
+ ExtendedLocationReplicaCount
+
Name
+
+ StorageAccountType
+
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ImagePurchasePlan
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryUpdate
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ImagePurchasePlan
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryUpdate
-
-
-
-
-
-
@@ -1194,39 +1234,39 @@
Name
-
- Product
-
-
- Publisher
-
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.InnerError
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ImagePurchasePlan
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.InnerError
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ImagePurchasePlan
-
+
-
+
+
+
+
- Errordetail
+ Name
- Exceptiontype
+ Product
+
+
+ Publisher
@@ -1234,45 +1274,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.InstanceViewStatus
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.OSDiskImageEncryption
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.InstanceViewStatus
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.OSDiskImageEncryption
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Code
-
-
- DisplayStatus
-
-
- Level
-
-
- Message
-
-
- Time
+ DiskEncryptionSetId
@@ -1280,21 +1296,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.OSDiskImageEncryption
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.OSDiskImageSecurityProfile
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.OSDiskImageEncryption
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.OSDiskImageSecurityProfile
-
+
+
+
+
- DiskEncryptionSetId
+ ConfidentialVMEncryptionType
+
+
+ SecureVMDiskEncryptionSetId
@@ -1302,9 +1324,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RegionalReplicationStatus
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.RegionalReplicationStatus
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RegionalReplicationStatus
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.RegionalReplicationStatus
@@ -1342,21 +1364,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ReplicationStatus
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.RegionalSharingStatus
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ReplicationStatus
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.RegionalSharingStatus
-
+
+
+
+
+
+
+
- AggregatedState
+ Detail
+
+
+ Region
+
+
+ State
@@ -1364,27 +1398,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ReplicationStatus
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Resource
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ReplicationStatus
-
-
-
-
+
- Location
-
-
- Name
+ AggregatedState
@@ -1392,9 +1420,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ResourceRange
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ResourceRange
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ResourceRange
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ResourceRange
@@ -1420,21 +1448,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.SharingProfile
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.SharingProfile
-
+
- Item
+ Permission
@@ -1442,45 +1470,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandDocument
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.SharingStatus
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandDocument
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.SharingStatus
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Description
-
-
- Label
-
-
- OSType
-
-
- Schema
-
-
- Script
+ AggregatedState
@@ -1488,39 +1492,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandDocumentBase
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.SharingUpdate
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandDocumentBase
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.SharingUpdate
-
-
-
-
-
-
-
-
-
-
+
- Description
-
-
- Label
-
-
- OSType
-
-
- Schema
+ OperationType
@@ -1528,27 +1514,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandInput
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.SoftDeletePolicy
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandInput
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.SoftDeletePolicy
-
-
-
-
+
- CommandId
-
-
- Script
+ IsSoftDeleteEnabled
@@ -1556,9 +1536,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandInputParameter
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.TargetRegion
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandInputParameter
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.TargetRegion
@@ -1566,7 +1546,10 @@
-
+
+
+
+
@@ -1576,7 +1559,10 @@
Name
- Value
+ RegionalReplicaCount
+
+
+ StorageAccountType
@@ -1584,21 +1570,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UpdateResourceDefinition
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UpdateResourceDefinition
-
+
- NextLink
+ Name
@@ -1606,33 +1592,55 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandParameterDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UpdateResourceDefinitionTags
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandParameterDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UpdateResourceDefinitionTags
-
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UserArtifactManage
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UserArtifactManage
+
+
+
+
+
-
+
-
+
- DefaultValue
+ Install
- Name
+ Remove
- Required
+ Update
@@ -1640,21 +1648,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.SharingProfile
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UserArtifactSettings
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.SharingProfile
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UserArtifactSettings
-
+
+
+
+
- Permission
+ ConfigFileName
+
+
+ PackageFileName
@@ -1662,21 +1676,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.SharingUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UserArtifactSource
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.SharingUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.UserArtifactSource
-
+
+
+
+
- OperationType
+ DefaultConfigurationLink
+
+
+ MediaLink
@@ -1684,21 +1704,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.SoftDeletePolicy
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ApiError
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.SoftDeletePolicy
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ApiError
-
+
+
+
+
+
+
+
- IsSoftDeleteEnabled
+ Code
+
+
+ Message
+
+
+ Target
@@ -1706,33 +1738,107 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.TargetRegion
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ApiErrorBase
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.TargetRegion
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ApiErrorBase
-
+
-
+
-
+
- Name
+ Code
- RegionalReplicaCount
+ Message
- StorageAccountType
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.InnerError
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.InnerError
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Errordetail
+
+
+ Exceptiontype
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.InstanceViewStatus
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.InstanceViewStatus
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ DisplayStatus
+
+
+ Level
+
+
+ Message
+
+
+ Time
@@ -1740,12 +1846,15 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UpdateResourceDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Resource
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UpdateResourceDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Resource
+
+
+
@@ -1753,6 +1862,9 @@
+
+ Location
+
Name
@@ -1762,9 +1874,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UpdateResourceDefinitionTags
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UpdateResourceDefinitionTags
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ResourceTags
@@ -1784,21 +1896,45 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UpdateResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandDocument
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UpdateResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandDocument
-
+
+
+
+
+
+
+
+
+
+
+
+
+
- Item
+ Description
+
+
+ Label
+
+
+ OSType
+
+
+ Schema
+
+
+ Script
@@ -1806,33 +1942,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UserArtifactManage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandDocumentBase
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UserArtifactManage
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandDocumentBase
-
+
-
+
-
+
+
+
+
- Install
+ Description
- Remove
+ Label
- Update
+ OSType
+
+
+ Schema
@@ -1840,27 +1982,133 @@
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UserArtifactSource
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandInput
- Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UserArtifactSource
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandInput
-
+
-
+
- DefaultConfigurationLink
+ CommandId
- MediaLink
+ Script
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandInputParameter
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandInputParameter
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Value
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandParameterDefinition
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.RunCommandParameterDefinition
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DefaultValue
+
+
+ Name
+
+
+ Required
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UpdateResourceTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.UpdateResourceTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
diff --git a/src/Compute/Compute.Autorest/Az.Compute.psm1 b/src/Compute/Compute.Autorest/Az.Compute.psm1
index 4173e0d7a277..67dc918911e9 100644
--- a/src/Compute/Compute.Autorest/Az.Compute.psm1
+++ b/src/Compute/Compute.Autorest/Az.Compute.psm1
@@ -25,17 +25,17 @@
}
}
if(-not $accountsModule) {
- $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
if($hasAdequateVersion) {
- $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
}
}
}
if(-not $accountsModule) {
- Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
- } elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) {
- Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
+ } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
}
Write-Information "Loaded Module '$($accountsModule.Name)'"
@@ -50,6 +50,10 @@
# Tweaks the pipeline on module load
$instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Following two delegates are added for telemetry
+ $instance.GetTelemetryId = $VTable.GetTelemetryId
+ $instance.Telemetry = $VTable.Telemetry
# Tweaks the pipeline per call
diff --git a/src/Compute/Compute.Autorest/Properties/AssemblyInfo.cs b/src/Compute/Compute.Autorest/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..c3f5f77ce06a
--- /dev/null
+++ b/src/Compute/Compute.Autorest/Properties/AssemblyInfo.cs
@@ -0,0 +1,28 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Microsoft Azure Powershell - Compute")]
+[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
+[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
+[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(false)]
+[assembly: Guid("05e53bbe-85c7-4f90-b796-25b4d044090b")]
+[assembly: AssemblyVersion("0.1.0")]
+[assembly: AssemblyFileVersion("0.1.0")]
diff --git a/src/Compute/Compute.Autorest/README.md b/src/Compute/Compute.Autorest/README.md
index 6742c91a0c90..2f4c2fadd067 100644
--- a/src/Compute/Compute.Autorest/README.md
+++ b/src/Compute/Compute.Autorest/README.md
@@ -17,7 +17,7 @@ This directory contains the PowerShell module for the Compute service.
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
## Module Requirements
-- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater
+- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
## Authentication
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
@@ -29,16 +29,16 @@ For information on how to develop for `Az.Compute`, see [how-to.md](how-to.md).
### AutoRest Configuration
> see https://aka.ms/autorest
``` yaml
-branch: 0c887b0c35f6f19468a16e660bba2a9eb5f4a330
+branch: 4640dfc655f8641962814663fd03fd667e5c1a88
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
# You need to specify your swagger files here.
- - $(repo)/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/gallery.json
+ - $(repo)/specification/compute/resource-manager/Microsoft.Compute/stable/2022-01-03/GalleryRP/gallery.json
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/runCommands.json
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
-module-version: 0.1.0
+module-version: 0.2.0
# Normally, title is the service name
title: Compute
subject-prefix: ""
@@ -149,6 +149,18 @@ directive:
parameter-name: PublishingProfileTargetRegion
set:
parameter-name: TargetRegion
+ - where:
+ verb: New|Update
+ subject: GalleryApplicationVersion
+ parameter-name: SettingConfigFileName
+ set:
+ parameter-name: ConfigFileName
+ - where:
+ verb: New|Update
+ subject: GalleryApplicationVersion
+ parameter-name: SettingPackageFileName
+ set:
+ parameter-name: PackageFileName
### END # change parameter names for GalleryApplicationVersion
# hide parameters for New, Update Gallery Application
- where:
@@ -166,7 +178,7 @@ directive:
- where:
verb: Update|New
subject: GalleryApplicationVersion$
- parameter-name: PublishingProfileEnableHealthCheck|PublishingProfileStorageAccountType|PublishingProfileReplicationMode
+ parameter-name: PublishingProfileEnableHealthCheck|PublishingProfileStorageAccountType|PublishingProfileReplicationMode|PublishingProfileTargetExtendedLocation|PublishingProfileAdvancedSetting
hide: true
- where:
verb: Update
diff --git a/src/Compute/Compute.Autorest/check-dependencies.ps1 b/src/Compute/Compute.Autorest/check-dependencies.ps1
index b02ae9135957..c29591c7bfe1 100644
--- a/src/Compute/Compute.Autorest/check-dependencies.ps1
+++ b/src/Compute/Compute.Autorest/check-dependencies.ps1
@@ -25,7 +25,7 @@ if(-not $Isolated) {
function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
if($predicate) {
$module = Get-Module -ListAvailable -Name $moduleName
- if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) {
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
$null = New-Item -ItemType Directory -Force -Path $path
Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
if ($requiredVersion) {
@@ -47,7 +47,7 @@ if(Test-Path -Path $localModulesPath) {
$env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
}
-DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3'
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
$tools = Join-Path $PSScriptRoot 'tools'
diff --git a/src/Compute/Compute.Autorest/create-model-cmdlets.ps1 b/src/Compute/Compute.Autorest/create-model-cmdlets.ps1
index 400391802402..04c639459581 100644
--- a/src/Compute/Compute.Autorest/create-model-cmdlets.ps1
+++ b/src/Compute/Compute.Autorest/create-model-cmdlets.ps1
@@ -23,7 +23,7 @@ function CreateModelCmdlet {
}
$ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
- $ModuleName = 'Az.Compute'.Split(".")[1]
+ $ModuleName = ''
$OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
$null = New-Item -ItemType Directory -Force -Path $OutputDir
@@ -112,13 +112,22 @@ function CreateModelCmdlet {
$ParameterDefinePropertyList.Add("HelpMessage=`"${Description}.`"")
}
$ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList)
+ # check whether completer is needed
+ $completer = '';
+ if($Type.Split('.').Split('.')[-2] -eq 'Support') {
+ # If Type is an array, need to strip []
+ $strippedType = $Type.Replace('[]', '')
+ $completer += "`n [ArgumentCompleter([${strippedType}])]"
+ }
$ParameterDefineScript = "
- [Parameter($ParameterDefineProperty)]
+ [Parameter($ParameterDefineProperty)]${completer}
[${Type}]
`$${Identifier}"
$ParameterDefineScriptList.Add($ParameterDefineScript)
$ParameterAssignScriptList.Add("
- `$Object.${Identifier} = `$${Identifier}")
+ if (`$PSBoundParameters.ContainsKey('${Identifier}')) {
+ `$Object.${Identifier} = `$${Identifier}
+ }")
}
}
$ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator ","
@@ -142,9 +151,9 @@ function CreateModelCmdlet {
<#
.Synopsis
-Create a in-memory object for ${ObjectType}
+Create an in-memory object for ${ObjectType}.
.Description
-Create a in-memory object for ${ObjectType}
+Create an in-memory object for ${ObjectType}.
.Outputs
${ObjectTypeWithNamespace}
@@ -167,4 +176,4 @@ ${ParameterAssignScript}
"
Set-Content -Path $OutputPath -Value $Script
}
-}
\ No newline at end of file
+}
diff --git a/src/Compute/Compute.Autorest/custom/New-AzGalleryApplication.ps1 b/src/Compute/Compute.Autorest/custom/New-AzGalleryApplication.ps1
index 397127689b0d..69fd5b7d9f7b 100644
--- a/src/Compute/Compute.Autorest/custom/New-AzGalleryApplication.ps1
+++ b/src/Compute/Compute.Autorest/custom/New-AzGalleryApplication.ps1
@@ -14,7 +14,7 @@ Create or update a gallery Application Definition.
#>
function New-AzGalleryApplication {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication])]
[CmdletBinding(PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/Compute/Compute.Autorest/custom/New-AzGalleryApplicationVersion.ps1 b/src/Compute/Compute.Autorest/custom/New-AzGalleryApplicationVersion.ps1
index 806a79c5d432..b291c41d4d20 100644
--- a/src/Compute/Compute.Autorest/custom/New-AzGalleryApplicationVersion.ps1
+++ b/src/Compute/Compute.Autorest/custom/New-AzGalleryApplicationVersion.ps1
@@ -13,7 +13,7 @@ Create or update a gallery Application Version.
Create or update a gallery Application Version.
#>
function New-AzGalleryApplicationVersion {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(Mandatory)]
@@ -120,7 +120,7 @@ function New-AzGalleryApplicationVersion {
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ITargetRegion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ITargetRegion[]]
# The target regions where the Image Version is going to be replicated to.
# This property is updatable.
# To construct, see NOTES section for TARGETREGION properties and create a hash table.
@@ -192,7 +192,25 @@ function New-AzGalleryApplicationVersion {
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
+ ${ProxyUseDefaultCredentials},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
+ [System.String]
+ # Optional.
+ # The name to assign the downloaded package file on the VM.
+ # This is limited to 4096 characters.
+ # If not specified, the package file will be named the same as the Gallery Application name.
+ ${PackageFileName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
+ [System.String]
+ # Optional.
+ # The name to assign the downloaded config file on the VM.
+ # This is limited to 4096 characters.
+ # If not specified, the config file will be named the Gallery Application name appended with "_config".
+ ${ConfigFileName}
)
process {
Az.Compute.internal\New-AzGalleryApplicationVersion @PSBoundParameters
diff --git a/src/Compute/Compute.Autorest/custom/Update-AzGalleryApplicationVersion.ps1 b/src/Compute/Compute.Autorest/custom/Update-AzGalleryApplicationVersion.ps1
index e55b45b40dc5..2bf1e75888c0 100644
--- a/src/Compute/Compute.Autorest/custom/Update-AzGalleryApplicationVersion.ps1
+++ b/src/Compute/Compute.Autorest/custom/Update-AzGalleryApplicationVersion.ps1
@@ -14,7 +14,7 @@ Update a gallery Application Version.
#>
function Update-AzGalleryApplicationVersion {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -98,7 +98,7 @@ function Update-AzGalleryApplicationVersion {
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IUpdateResourceDefinitionTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IUpdateResourceDefinitionTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
@@ -106,7 +106,7 @@ function Update-AzGalleryApplicationVersion {
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ITargetRegion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ITargetRegion[]]
# The target regions where the Image Version is going to be replicated to.
# This property is updatable.
# To construct, see NOTES section for TARGETREGION properties and create a hash table.
diff --git a/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplication.md b/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplication.md
index b6528f2b4b2b..54fd8cb962b1 100644
--- a/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplication.md
+++ b/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplication.md
@@ -36,16 +36,14 @@ Retrieves information about a gallery Application Definition.
### Example 1: Get a Gallery Application in a Gallery
```powershell
-PS C:\> Get-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -name $galleryAppName
-
+Get-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -name $galleryAppName
```
Retrieve a Gallery Application resource with the provided Resource Group, Gallery, and Gallery Application name.
### Example 2: Get all the Gallery Applications in a Gallery
```powershell
-PS C:\> Get-AzGalleryApplication -GalleryName $GalleryName -ResourceGroupName $rgName
-
+Get-AzGalleryApplication -GalleryName $GalleryName -ResourceGroupName $rgName
```
Retrieve all the Gallery Application resources in the provided Resource Group and Gallery.
@@ -153,7 +151,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication
+### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication
## NOTES
@@ -164,7 +162,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
diff --git a/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplicationVersion.md
index 4547616a693a..5b606c356fb7 100644
--- a/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplicationVersion.md
+++ b/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplicationVersion.md
@@ -38,16 +38,14 @@ Retrieves information about a gallery Application Version.
### Example 1: Get a Gallery Application Version
```powershell
-PS C:\> Get-AzGalleryApplicationVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryApplicationName $galleryAppName -Name $versionName
-
+Get-AzGalleryApplicationVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryApplicationName $galleryAppName -Name $versionName
```
Retrieve a Gallery Application Version resource with the provided Resource Group, Gallery, Gallery Application name, and version name.
### Example 2: Get all the Gallery Application Versions in a GalleryApplication
```powershell
-PS C:\> Get-AzGalleryApplicationVersion -GalleryName $GalleryName -ResourceGroupName $rgName -GalleryApplicationName $galleryAppName
-
+Get-AzGalleryApplicationVersion -GalleryName $GalleryName -ResourceGroupName $rgName -GalleryApplicationName $galleryAppName
```
Retrieve all the Gallery Application Version resources in the provided Resource Group, Gallery, and Gallery Application Name.
@@ -185,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion
+### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion
## NOTES
@@ -196,7 +194,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
diff --git a/src/Compute/Compute.Autorest/docs/Get-AzVMRunCommand.md b/src/Compute/Compute.Autorest/docs/Get-AzVMRunCommand.md
index 95560b52ebef..2d28d6f5e67f 100644
--- a/src/Compute/Compute.Autorest/docs/Get-AzVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/docs/Get-AzVMRunCommand.md
@@ -48,8 +48,10 @@ Gets specific run command for a subscription in a location.
### Example 1: Get Run Command by Name
```powershell
-PS C:\> Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand2"
+Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand2"
+```
+```output
Location Name Type
-------- ---- ----
eastus firstruncommand2 Microsoft.Compute/virtualMachines/runCommands
@@ -59,8 +61,10 @@ Get Run Command by it's name.
### Example 2: Get Run Commands by VM
```powershell
-PS C:\> Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname
+Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname
+```
+```output
Location Name Type
-------- ---- ----
eastus firstruncommand Microsoft.Compute/virtualMachines/runCommands
@@ -233,7 +237,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
diff --git a/src/Compute/Compute.Autorest/docs/Get-AzVmssVMRunCommand.md b/src/Compute/Compute.Autorest/docs/Get-AzVmssVMRunCommand.md
index 467551999d6b..8249da5e4fe8 100644
--- a/src/Compute/Compute.Autorest/docs/Get-AzVmssVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/docs/Get-AzVmssVMRunCommand.md
@@ -38,8 +38,10 @@ The operation to get the VMSS VM run command.
### Example 1: Get RunCommand by name
```powershell
-PS C:\> Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
+Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
+```
+```output
Location Name Type
-------- ---- ----
eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
@@ -49,8 +51,10 @@ Get by runcommand name
### Example 2: Get RunCommand by Instance
```powershell
-PS C:\> Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -VMScaleSetName $vmssname
+Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -VMScaleSetName $vmssname
+```
+```output
Location Name Type
-------- ---- ----
eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
@@ -202,7 +206,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
diff --git a/src/Compute/Compute.Autorest/docs/New-AzGalleryApplication.md b/src/Compute/Compute.Autorest/docs/New-AzGalleryApplication.md
index ae7240f1842e..da51e2c95c0c 100644
--- a/src/Compute/Compute.Autorest/docs/New-AzGalleryApplication.md
+++ b/src/Compute/Compute.Autorest/docs/New-AzGalleryApplication.md
@@ -25,8 +25,7 @@ Create or update a gallery Application Definition.
### Example 1: Create a gallery application
```powershell
-PS C:\> New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
-
+New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
```
Creating a Gallery Application in a Gallery.
@@ -247,7 +246,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication
+### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication
## NOTES
diff --git a/src/Compute/Compute.Autorest/docs/New-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/docs/New-AzGalleryApplicationVersion.md
index df0f3ea4f368..dfeebb1c66a4 100644
--- a/src/Compute/Compute.Autorest/docs/New-AzGalleryApplicationVersion.md
+++ b/src/Compute/Compute.Autorest/docs/New-AzGalleryApplicationVersion.md
@@ -15,7 +15,8 @@ Create or update a gallery Application Version.
```
New-AzGalleryApplicationVersion -GalleryApplicationName -GalleryName -Name
-ResourceGroupName -Install -Location -Remove [-SubscriptionId ]
- [-DefaultConfigFileLink ] [-PackageFileLink ] [-PublishingProfileEndOfLifeDate ]
+ [-ConfigFileName ] [-DefaultConfigFileLink ] [-PackageFileLink ]
+ [-PackageFileName ] [-PublishingProfileEndOfLifeDate ]
[-PublishingProfileExcludeFromLatest] [-ReplicaCount ] [-Tag ]
[-TargetRegion ] [-Update ] [-DefaultProfile ] [-AsJob] [-NoWait]
[-Confirm] [-WhatIf] []
@@ -28,14 +29,13 @@ Create or update a gallery Application Version.
### Example 1: Create a gallery application version.
```powershell
-PS C:\> $ctx = New-AzStorageContext -StorageAccountName $storAccName
-PS C:\> $SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
-PS C:\> $storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
-PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
-PS C:\> $SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
-PS C:\> $SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
-PS C:\> 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"
-
+$ctx = New-AzStorageContext -StorageAccountName $storAccName
+$SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
+$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
+$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
+$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
+$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
+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"
```
Creating a Gallery Application Version.
@@ -58,6 +58,24 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ConfigFileName
+Optional.
+The name to assign the downloaded config file on the VM.
+This is limited to 4096 characters.
+If not specified, the config file will be named the Gallery Application name appended with "_config".
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -DefaultConfigFileLink
Optional.
The defaultConfigurationLink of the artifact, must be a readable storage page blob.
@@ -200,6 +218,24 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -PackageFileName
+Optional.
+The name to assign the downloaded package file on the VM.
+This is limited to 4096 characters.
+If not specified, the package file will be named the same as the Gallery Application name.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -PublishingProfileEndOfLifeDate
The end of life date of the gallery image version.
This property can be used for decommissioning purposes.
@@ -318,7 +354,7 @@ This property is updatable.
To construct, see NOTES section for TARGETREGION properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ITargetRegion[]
+Type: Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ITargetRegion[]
Parameter Sets: (All)
Aliases:
@@ -385,7 +421,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion
+### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion
## NOTES
@@ -396,13 +432,15 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-TARGETREGION : The target regions where the Image Version is going to be replicated to. This property is updatable.
+`TARGETREGION `: The target regions where the Image Version is going to be replicated to. This property is updatable.
- `Name `: The name of the region.
- `[EncryptionDataDiskImage ]`: A list of encryption specifications for data disk images.
- `Lun `: This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
- `[DiskEncryptionSetId ]`: A relative URI containing the resource ID of the disk encryption set.
- `[OSDiskImageDiskEncryptionSetId ]`: A relative URI containing the resource ID of the disk encryption set.
- `[RegionalReplicaCount ]`: The number of replicas of the Image Version to be created per region. This property is updatable.
+ - `[SecurityProfileConfidentialVMEncryptionType ]`: confidential VM encryption types
+ - `[SecurityProfileSecureVMDiskEncryptionSetId ]`: secure VM disk encryption set id
- `[StorageAccountType ]`: Specifies the storage account type to be used to store the image. This property is not updatable.
## RELATED LINKS
diff --git a/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplication.md b/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplication.md
index d6803ef7ef02..24f925e42a8d 100644
--- a/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplication.md
+++ b/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplication.md
@@ -32,8 +32,7 @@ Delete a gallery Application.
### Example 1: Remove a Gallery Application
```powershell
-PS C:\> Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -Name $name
-
+Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -Name $name
```
Delete a gallery application.
@@ -228,7 +227,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
diff --git a/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplicationVersion.md
index 380432e1ebac..fd7bd3cccde7 100644
--- a/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplicationVersion.md
+++ b/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplicationVersion.md
@@ -32,8 +32,7 @@ Delete a gallery Application Version.
### Example 1: Remove a Gallery Application Version
```powershell
-PS C:\> Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -Name $name
-
+Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -Name $name
```
Delete a gallery application version.
@@ -243,7 +242,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
diff --git a/src/Compute/Compute.Autorest/docs/Remove-AzVMRunCommand.md b/src/Compute/Compute.Autorest/docs/Remove-AzVMRunCommand.md
index 53f71df62ea8..406d39557eb7 100644
--- a/src/Compute/Compute.Autorest/docs/Remove-AzVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/docs/Remove-AzVMRunCommand.md
@@ -32,8 +32,7 @@ The operation to delete the run command.
### Example 1: Remove Run Command
```powershell
-PS C:\> Remove-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand"
-
+Remove-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand"
```
Remove a Run Command by its Name
@@ -228,7 +227,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
diff --git a/src/Compute/Compute.Autorest/docs/Remove-AzVmssVMRunCommand.md b/src/Compute/Compute.Autorest/docs/Remove-AzVmssVMRunCommand.md
index 9366ece39ffb..5460f00792d0 100644
--- a/src/Compute/Compute.Autorest/docs/Remove-AzVmssVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/docs/Remove-AzVmssVMRunCommand.md
@@ -32,8 +32,7 @@ The operation to delete the VMSS VM run command.
### Example 1: Remove VMSS VM RunCommand
```powershell
-PS C:\> Remove-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
-
+Remove-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
```
Remove VMSS VM RunCommand
@@ -243,7 +242,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
diff --git a/src/Compute/Compute.Autorest/docs/Set-AzVMRunCommand.md b/src/Compute/Compute.Autorest/docs/Set-AzVMRunCommand.md
index 88bda3cc1c24..4bb08dc8cca9 100644
--- a/src/Compute/Compute.Autorest/docs/Set-AzVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/docs/Set-AzVMRunCommand.md
@@ -28,8 +28,10 @@ The operation to create or update the run command.
### Example 1: Simple Example
```powershell
-PS C:\> Set-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName 'firstruncommand'
+Set-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName 'firstruncommand'
+```
+```output
Location Name Type
-------- ---- ----
eastus firstruncommand2 Microsoft.Compute/virtualMachines/runCommands
@@ -392,11 +394,11 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-PARAMETER : The parameters used by the script.
+`PARAMETER `: The parameters used by the script.
- `Name `: The run command parameter name.
- `Value `: The run command parameter value.
-PROTECTEDPARAMETER : The parameters used by the script.
+`PROTECTEDPARAMETER `: The parameters used by the script.
- `Name `: The run command parameter name.
- `Value `: The run command parameter value.
diff --git a/src/Compute/Compute.Autorest/docs/Set-AzVmssVMRunCommand.md b/src/Compute/Compute.Autorest/docs/Set-AzVmssVMRunCommand.md
index 86a7e1ed9cb0..92e8be02e497 100644
--- a/src/Compute/Compute.Autorest/docs/Set-AzVmssVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/docs/Set-AzVmssVMRunCommand.md
@@ -29,8 +29,10 @@ The operation to create or update the VMSS VM run command.
### Example 1: Set RunCommand by name
```powershell
-PS C:\> Set-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
+Set-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
+```
+```output
Location Name Type
-------- ---- ----
eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
@@ -408,11 +410,11 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-PARAMETER : The parameters used by the script.
+`PARAMETER `: The parameters used by the script.
- `Name `: The run command parameter name.
- `Value `: The run command parameter value.
-PROTECTEDPARAMETER : The parameters used by the script.
+`PROTECTEDPARAMETER `: The parameters used by the script.
- `Name `: The run command parameter name.
- `Value `: The run command parameter value.
diff --git a/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplication.md b/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplication.md
index 33eb63c0a0bc..e096aab86a5a 100644
--- a/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplication.md
+++ b/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplication.md
@@ -32,8 +32,7 @@ Update a gallery Application Definition.
### Example 1: Update a Gallery Application
```powershell
-PS C:\> Update-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -Name $name -Description "New Description"
-
+Update-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -Name $name -Description "New Description"
```
Updating a Gallery Application.
@@ -235,7 +234,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication
+### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication
## NOTES
@@ -246,7 +245,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
diff --git a/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplicationVersion.md
index ab6163f8a1c0..ff9013fa04ea 100644
--- a/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplicationVersion.md
+++ b/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplicationVersion.md
@@ -38,13 +38,13 @@ Update a gallery Application Version.
### Example 1: Update Replica Count of Gallery Application Version
```powershell
-PS C:\> $ctx = New-AzStorageContext -StorageAccountName $storAccName
-PS C:\> $SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
-PS C:\> $storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
-PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
-PS C:\> $SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
-PS C:\> $SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
-PS C:\> Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
+$ctx = New-AzStorageContext -StorageAccountName $storAccName
+$SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
+$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
+$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
+$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
+$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
+Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
```
Updating a Gallery Application Version's replica count.
@@ -294,7 +294,7 @@ This property is updatable.
To construct, see NOTES section for TARGETREGION properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ITargetRegion[]
+Type: Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ITargetRegion[]
Parameter Sets: (All)
Aliases:
@@ -345,7 +345,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion
+### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion
## NOTES
@@ -356,7 +356,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
+`INPUTOBJECT `: Identity Parameter
- `[CommandId ]`: The command id.
- `[GalleryApplicationName ]`: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
- `[GalleryApplicationVersionName ]`: The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
@@ -372,13 +372,15 @@ INPUTOBJECT : Identity Parameter
- `[VMName ]`: The name of the virtual machine where the run command should be created or updated.
- `[VMScaleSetName ]`: The name of the VM scale set.
-TARGETREGION : The target regions where the Image Version is going to be replicated to. This property is updatable.
+`TARGETREGION `: The target regions where the Image Version is going to be replicated to. This property is updatable.
- `Name `: The name of the region.
- `[EncryptionDataDiskImage ]`: A list of encryption specifications for data disk images.
- `Lun `: This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
- `[DiskEncryptionSetId ]`: A relative URI containing the resource ID of the disk encryption set.
- `[OSDiskImageDiskEncryptionSetId ]`: A relative URI containing the resource ID of the disk encryption set.
- `[RegionalReplicaCount ]`: The number of replicas of the Image Version to be created per region. This property is updatable.
+ - `[SecurityProfileConfidentialVMEncryptionType ]`: confidential VM encryption types
+ - `[SecurityProfileSecureVMDiskEncryptionSetId ]`: secure VM disk encryption set id
- `[StorageAccountType ]`: Specifies the storage account type to be used to store the image. This property is not updatable.
## RELATED LINKS
diff --git a/src/Compute/Compute.Autorest/examples/Get-AzGalleryApplication.md b/src/Compute/Compute.Autorest/examples/Get-AzGalleryApplication.md
index 33ce5802e918..00174bcd7359 100644
--- a/src/Compute/Compute.Autorest/examples/Get-AzGalleryApplication.md
+++ b/src/Compute/Compute.Autorest/examples/Get-AzGalleryApplication.md
@@ -1,15 +1,13 @@
### Example 1: Get a Gallery Application in a Gallery
```powershell
-PS C:\> Get-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -name $galleryAppName
-
+Get-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -name $galleryAppName
```
Retrieve a Gallery Application resource with the provided Resource Group, Gallery, and Gallery Application name.
### Example 2: Get all the Gallery Applications in a Gallery
```powershell
-PS C:\> Get-AzGalleryApplication -GalleryName $GalleryName -ResourceGroupName $rgName
-
+Get-AzGalleryApplication -GalleryName $GalleryName -ResourceGroupName $rgName
```
Retrieve all the Gallery Application resources in the provided Resource Group and Gallery.
\ No newline at end of file
diff --git a/src/Compute/Compute.Autorest/examples/Get-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/examples/Get-AzGalleryApplicationVersion.md
index be7700c157be..5bc9673e836e 100644
--- a/src/Compute/Compute.Autorest/examples/Get-AzGalleryApplicationVersion.md
+++ b/src/Compute/Compute.Autorest/examples/Get-AzGalleryApplicationVersion.md
@@ -1,15 +1,13 @@
### Example 1: Get a Gallery Application Version
```powershell
-PS C:\> Get-AzGalleryApplicationVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryApplicationName $galleryAppName -Name $versionName
-
+Get-AzGalleryApplicationVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryApplicationName $galleryAppName -Name $versionName
```
Retrieve a Gallery Application Version resource with the provided Resource Group, Gallery, Gallery Application name, and version name.
### Example 2: Get all the Gallery Application Versions in a GalleryApplication
```powershell
-PS C:\> Get-AzGalleryApplicationVersion -GalleryName $GalleryName -ResourceGroupName $rgName -GalleryApplicationName $galleryAppName
-
+Get-AzGalleryApplicationVersion -GalleryName $GalleryName -ResourceGroupName $rgName -GalleryApplicationName $galleryAppName
```
Retrieve all the Gallery Application Version resources in the provided Resource Group, Gallery, and Gallery Application Name.
\ No newline at end of file
diff --git a/src/Compute/Compute.Autorest/examples/Get-AzVMRunCommand.md b/src/Compute/Compute.Autorest/examples/Get-AzVMRunCommand.md
index 6031b68ae1bb..e374179a1fe6 100644
--- a/src/Compute/Compute.Autorest/examples/Get-AzVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/examples/Get-AzVMRunCommand.md
@@ -1,7 +1,9 @@
### Example 1: Get Run Command by Name
```powershell
-PS C:\> Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand2"
+Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand2"
+```
+```output
Location Name Type
-------- ---- ----
eastus firstruncommand2 Microsoft.Compute/virtualMachines/runCommands
@@ -11,8 +13,10 @@ Get Run Command by it's name.
### Example 2: Get Run Commands by VM
```powershell
-PS C:\> Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname
+Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname
+```
+```output
Location Name Type
-------- ---- ----
eastus firstruncommand Microsoft.Compute/virtualMachines/runCommands
diff --git a/src/Compute/Compute.Autorest/examples/Get-AzVmssVMRunCommand.md b/src/Compute/Compute.Autorest/examples/Get-AzVmssVMRunCommand.md
index 2482da7f8ab5..add6b859fa07 100644
--- a/src/Compute/Compute.Autorest/examples/Get-AzVmssVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/examples/Get-AzVmssVMRunCommand.md
@@ -1,7 +1,9 @@
### Example 1: Get RunCommand by name
```powershell
-PS C:\> Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
+Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
+```
+```output
Location Name Type
-------- ---- ----
eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
@@ -11,8 +13,10 @@ Get by runcommand name
### Example 2: Get RunCommand by Instance
```powershell
-PS C:\> Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -VMScaleSetName $vmssname
+Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -VMScaleSetName $vmssname
+```
+```output
Location Name Type
-------- ---- ----
eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
diff --git a/src/Compute/Compute.Autorest/examples/New-AzGalleryApplication.md b/src/Compute/Compute.Autorest/examples/New-AzGalleryApplication.md
index bf3bc88f2294..70cfba822408 100644
--- a/src/Compute/Compute.Autorest/examples/New-AzGalleryApplication.md
+++ b/src/Compute/Compute.Autorest/examples/New-AzGalleryApplication.md
@@ -1,7 +1,6 @@
### Example 1: Create a gallery application
```powershell
-PS C:\> New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
-
+New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
```
Creating a Gallery Application in a Gallery.
diff --git a/src/Compute/Compute.Autorest/examples/New-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/examples/New-AzGalleryApplicationVersion.md
index 4d1a5c1d498e..410fcefb85f5 100644
--- a/src/Compute/Compute.Autorest/examples/New-AzGalleryApplicationVersion.md
+++ b/src/Compute/Compute.Autorest/examples/New-AzGalleryApplicationVersion.md
@@ -1,13 +1,12 @@
### Example 1: Create a gallery application version.
```powershell
-PS C:\> $ctx = New-AzStorageContext -StorageAccountName $storAccName
-PS C:\> $SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
-PS C:\> $storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
-PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
-PS C:\> $SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
-PS C:\> $SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
-PS C:\> 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"
-
+$ctx = New-AzStorageContext -StorageAccountName $storAccName
+$SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
+$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
+$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
+$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
+$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
+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"
```
Creating a Gallery Application Version. Using SAS Uri for the blob for PackageFileLink.
diff --git a/src/Compute/Compute.Autorest/examples/Remove-AzGalleryApplication.md b/src/Compute/Compute.Autorest/examples/Remove-AzGalleryApplication.md
index 0b27382d6129..e7d7074a471a 100644
--- a/src/Compute/Compute.Autorest/examples/Remove-AzGalleryApplication.md
+++ b/src/Compute/Compute.Autorest/examples/Remove-AzGalleryApplication.md
@@ -1,7 +1,6 @@
### Example 1: Remove a Gallery Application
```powershell
-PS C:\> Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -Name $name
-
+Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -Name $name
```
Delete a gallery application.
diff --git a/src/Compute/Compute.Autorest/examples/Remove-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/examples/Remove-AzGalleryApplicationVersion.md
index b06b8cf84c9d..14bf093378a7 100644
--- a/src/Compute/Compute.Autorest/examples/Remove-AzGalleryApplicationVersion.md
+++ b/src/Compute/Compute.Autorest/examples/Remove-AzGalleryApplicationVersion.md
@@ -1,7 +1,6 @@
### Example 1: Remove a Gallery Application Version
```powershell
-PS C:\> Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -Name $name
-
+Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -Name $name
```
Delete a gallery application version.
diff --git a/src/Compute/Compute.Autorest/examples/Remove-AzVMRunCommand.md b/src/Compute/Compute.Autorest/examples/Remove-AzVMRunCommand.md
index d7c9a5185a28..b3af41536d68 100644
--- a/src/Compute/Compute.Autorest/examples/Remove-AzVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/examples/Remove-AzVMRunCommand.md
@@ -1,7 +1,6 @@
### Example 1: Remove Run Command
```powershell
-PS C:\> Remove-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand"
-
+Remove-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand"
```
Remove a Run Command by its Name
\ No newline at end of file
diff --git a/src/Compute/Compute.Autorest/examples/Remove-AzVmssVMRunCommand.md b/src/Compute/Compute.Autorest/examples/Remove-AzVmssVMRunCommand.md
index 2de72dd1a274..e96c6ae64cad 100644
--- a/src/Compute/Compute.Autorest/examples/Remove-AzVmssVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/examples/Remove-AzVmssVMRunCommand.md
@@ -1,7 +1,6 @@
### Example 1: Remove VMSS VM RunCommand
```powershell
-PS C:\> Remove-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
-
+Remove-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
```
Remove VMSS VM RunCommand
\ No newline at end of file
diff --git a/src/Compute/Compute.Autorest/examples/Set-AzVMRunCommand.md b/src/Compute/Compute.Autorest/examples/Set-AzVMRunCommand.md
index cce9c6484edd..3a0ed5328a3f 100644
--- a/src/Compute/Compute.Autorest/examples/Set-AzVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/examples/Set-AzVMRunCommand.md
@@ -1,7 +1,9 @@
### Example 1: Simple Example
```powershell
-PS C:\> Set-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -Location 'eastus' -RunCommandName 'firstruncommand'
+Set-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName 'firstruncommand'
+```
+```output
Location Name Type
-------- ---- ----
eastus firstruncommand Microsoft.Compute/virtualMachines/runCommands
diff --git a/src/Compute/Compute.Autorest/examples/Set-AzVmssVMRunCommand.md b/src/Compute/Compute.Autorest/examples/Set-AzVmssVMRunCommand.md
index 07fa97846e91..836f4892db84 100644
--- a/src/Compute/Compute.Autorest/examples/Set-AzVmssVMRunCommand.md
+++ b/src/Compute/Compute.Autorest/examples/Set-AzVmssVMRunCommand.md
@@ -1,7 +1,9 @@
### Example 1: Set RunCommand by name
```powershell
-PS C:\> Set-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
+Set-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
+```
+```output
Location Name Type
-------- ---- ----
eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
diff --git a/src/Compute/Compute.Autorest/examples/Update-AzGalleryApplication.md b/src/Compute/Compute.Autorest/examples/Update-AzGalleryApplication.md
index 976e5c395a11..a38bbbbcd101 100644
--- a/src/Compute/Compute.Autorest/examples/Update-AzGalleryApplication.md
+++ b/src/Compute/Compute.Autorest/examples/Update-AzGalleryApplication.md
@@ -1,7 +1,6 @@
### Example 1: Update a Gallery Application
```powershell
-PS C:\> Update-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -Name $name -Description "New Description"
-
+Update-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -Name $name -Description "New Description"
```
Updating a Gallery Application.
diff --git a/src/Compute/Compute.Autorest/examples/Update-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/examples/Update-AzGalleryApplicationVersion.md
index d3ae4edcca94..f40b846457d3 100644
--- a/src/Compute/Compute.Autorest/examples/Update-AzGalleryApplicationVersion.md
+++ b/src/Compute/Compute.Autorest/examples/Update-AzGalleryApplicationVersion.md
@@ -1,12 +1,12 @@
### Example 1: Update Replica Count of Gallery Application Version
```powershell
-PS C:\> $ctx = New-AzStorageContext -StorageAccountName $storAccName
-PS C:\> $SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
-PS C:\> $storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
-PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
-PS C:\> $SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
-PS C:\> $SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
-PS C:\> Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
+$ctx = New-AzStorageContext -StorageAccountName $storAccName
+$SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
+$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
+$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
+$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
+$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
+Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
```
Updating a Gallery Application Version's replica count. Using SAS Uri for the blob for PackageFileLink.
\ No newline at end of file
diff --git a/src/Compute/Compute.Autorest/exports/Get-AzGalleryApplication.ps1 b/src/Compute/Compute.Autorest/exports/Get-AzGalleryApplication.ps1
index 747fc9a2c902..b8b06721e616 100644
--- a/src/Compute/Compute.Autorest/exports/Get-AzGalleryApplication.ps1
+++ b/src/Compute/Compute.Autorest/exports/Get-AzGalleryApplication.ps1
@@ -20,16 +20,14 @@ Retrieves information about a gallery Application Definition.
.Description
Retrieves information about a gallery Application Definition.
.Example
-PS C:\> Get-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -name $galleryAppName
-
+Get-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -name $galleryAppName
.Example
-PS C:\> Get-AzGalleryApplication -GalleryName $GalleryName -ResourceGroupName $rgName
-
+Get-AzGalleryApplication -GalleryName $GalleryName -ResourceGroupName $rgName
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -54,7 +52,7 @@ INPUTOBJECT : Identity Parameter
https://docs.microsoft.com/powershell/module/az.compute/get-azgalleryapplication
#>
function Get-AzGalleryApplication {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -149,6 +147,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Compute.private\Get-AzGalleryApplication_Get';
GetViaIdentity = 'Az.Compute.private\Get-AzGalleryApplication_GetViaIdentity';
@@ -164,6 +180,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -172,15 +189,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Get-AzGalleryApplicationVersion.ps1 b/src/Compute/Compute.Autorest/exports/Get-AzGalleryApplicationVersion.ps1
index ebbb0a1ccb78..35f5920a8084 100644
--- a/src/Compute/Compute.Autorest/exports/Get-AzGalleryApplicationVersion.ps1
+++ b/src/Compute/Compute.Autorest/exports/Get-AzGalleryApplicationVersion.ps1
@@ -20,16 +20,14 @@ Retrieves information about a gallery Application Version.
.Description
Retrieves information about a gallery Application Version.
.Example
-PS C:\> Get-AzGalleryApplicationVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryApplicationName $galleryAppName -Name $versionName
-
+Get-AzGalleryApplicationVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryApplicationName $galleryAppName -Name $versionName
.Example
-PS C:\> Get-AzGalleryApplicationVersion -GalleryName $GalleryName -ResourceGroupName $rgName -GalleryApplicationName $galleryAppName
-
+Get-AzGalleryApplicationVersion -GalleryName $GalleryName -ResourceGroupName $rgName -GalleryApplicationName $galleryAppName
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -54,7 +52,7 @@ INPUTOBJECT : Identity Parameter
https://docs.microsoft.com/powershell/module/az.compute/get-azgalleryapplicationversion
#>
function Get-AzGalleryApplicationVersion {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -164,6 +162,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Compute.private\Get-AzGalleryApplicationVersion_Get';
GetViaIdentity = 'Az.Compute.private\Get-AzGalleryApplicationVersion_GetViaIdentity';
@@ -179,6 +195,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -187,15 +204,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Get-AzVMRunCommand.ps1 b/src/Compute/Compute.Autorest/exports/Get-AzVMRunCommand.ps1
index 1812850ef789..89d95f2e8c58 100644
--- a/src/Compute/Compute.Autorest/exports/Get-AzVMRunCommand.ps1
+++ b/src/Compute/Compute.Autorest/exports/Get-AzVMRunCommand.ps1
@@ -20,19 +20,9 @@ Gets specific run command for a subscription in a location.
.Description
Gets specific run command for a subscription in a location.
.Example
-PS C:\> Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand2"
-
-Location Name Type
--------- ---- ----
-eastus firstruncommand2 Microsoft.Compute/virtualMachines/runCommands
+Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand2"
.Example
-PS C:\> Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname
-
-Location Name Type
--------- ---- ----
-eastus firstruncommand Microsoft.Compute/virtualMachines/runCommands
-eastus firstruncommand2 Microsoft.Compute/virtualMachines/runCommands
-eastus firstruncommand3 Microsoft.Compute/virtualMachines/runCommands
+Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -182,6 +172,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Compute.private\Get-AzVMRunCommand_Get';
Get1 = 'Az.Compute.private\Get-AzVMRunCommand_Get1';
@@ -199,6 +207,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -207,15 +216,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Get-AzVmssVMRunCommand.ps1 b/src/Compute/Compute.Autorest/exports/Get-AzVmssVMRunCommand.ps1
index 2e997e4dda22..013f47377622 100644
--- a/src/Compute/Compute.Autorest/exports/Get-AzVmssVMRunCommand.ps1
+++ b/src/Compute/Compute.Autorest/exports/Get-AzVmssVMRunCommand.ps1
@@ -20,17 +20,9 @@ The operation to get the VMSS VM run command.
.Description
The operation to get the VMSS VM run command.
.Example
-PS C:\> Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
-
-Location Name Type
--------- ---- ----
-eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
+Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
.Example
-PS C:\> Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -VMScaleSetName $vmssname
-
-Location Name Type
--------- ---- ----
-eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
+Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -VMScaleSetName $vmssname
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -167,6 +159,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Compute.private\Get-AzVmssVMRunCommand_Get';
GetViaIdentity = 'Az.Compute.private\Get-AzVmssVMRunCommand_GetViaIdentity';
@@ -182,6 +192,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -190,15 +201,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/New-AzGalleryApplication.ps1 b/src/Compute/Compute.Autorest/exports/New-AzGalleryApplication.ps1
index 39f9c36a30d0..6e25d03d9d84 100644
--- a/src/Compute/Compute.Autorest/exports/New-AzGalleryApplication.ps1
+++ b/src/Compute/Compute.Autorest/exports/New-AzGalleryApplication.ps1
@@ -20,16 +20,15 @@ Create or update a gallery Application Definition.
.Description
Create or update a gallery Application Definition.
.Example
-PS C:\> New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
-
+New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication
.Link
https://docs.microsoft.com/powershell/module/az.compute/new-azgalleryapplication
#>
function New-AzGalleryApplication {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -162,6 +161,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
__AllParameterSets = 'Az.Compute.custom\New-AzGalleryApplication';
}
@@ -175,6 +192,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -183,15 +201,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/New-AzGalleryApplicationVersion.ps1 b/src/Compute/Compute.Autorest/exports/New-AzGalleryApplicationVersion.ps1
index e619a3a856bf..74057df7a18e 100644
--- a/src/Compute/Compute.Autorest/exports/New-AzGalleryApplicationVersion.ps1
+++ b/src/Compute/Compute.Autorest/exports/New-AzGalleryApplicationVersion.ps1
@@ -20,17 +20,16 @@ Create or update a gallery Application Version.
.Description
Create or update a gallery Application Version.
.Example
-PS C:\> $ctx = New-AzStorageContext -StorageAccountName $storAccName
-PS C:\> $SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
-PS C:\> $storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
-PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
-PS C:\> $SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
-PS C:\> $SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
-PS C:\> 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"
-
+$ctx = New-AzStorageContext -StorageAccountName $storAccName
+$SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
+$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
+$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
+$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
+$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
+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"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -43,12 +42,14 @@ TARGETREGION : The target regions where the Image Version is go
[DiskEncryptionSetId ]: A relative URI containing the resource ID of the disk encryption set.
[OSDiskImageDiskEncryptionSetId ]: A relative URI containing the resource ID of the disk encryption set.
[RegionalReplicaCount ]: The number of replicas of the Image Version to be created per region. This property is updatable.
+ [SecurityProfileConfidentialVMEncryptionType ]: confidential VM encryption types
+ [SecurityProfileSecureVMDiskEncryptionSetId ]: secure VM disk encryption set id
[StorageAccountType ]: Specifies the storage account type to be used to store the image. This property is not updatable.
.Link
https://docs.microsoft.com/powershell/module/az.compute/new-azgalleryapplicationversion
#>
function New-AzGalleryApplicationVersion {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -155,7 +156,7 @@ param(
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ITargetRegion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ITargetRegion[]]
# The target regions where the Image Version is going to be replicated to.
# This property is updatable.
# To construct, see NOTES section for TARGETREGION properties and create a hash table.
@@ -170,6 +171,24 @@ param(
# This is limited to 4096 characters.
${Update},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
+ [System.String]
+ # Optional.
+ # The name to assign the downloaded package file on the VM.
+ # This is limited to 4096 characters.
+ # If not specified, the package file will be named the same as the Gallery Application name.
+ ${PackageFileName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
+ [System.String]
+ # Optional.
+ # The name to assign the downloaded config file on the VM.
+ # This is limited to 4096 characters.
+ # If not specified, the config file will be named the Gallery Application name appended with "_config".
+ ${ConfigFileName},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -237,6 +256,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
CreateExpanded = 'Az.Compute.custom\New-AzGalleryApplicationVersion';
}
@@ -250,6 +287,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -258,15 +296,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Compute/Compute.Autorest/exports/ProxyCmdletDefinitions.ps1
index 2a50ce799f08..72e3e1009f2e 100644
--- a/src/Compute/Compute.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/src/Compute/Compute.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -20,16 +20,14 @@ Retrieves information about a gallery Application Version.
.Description
Retrieves information about a gallery Application Version.
.Example
-PS C:\> Get-AzGalleryApplicationVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryApplicationName $galleryAppName -Name $versionName
-
+Get-AzGalleryApplicationVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryApplicationName $galleryAppName -Name $versionName
.Example
-PS C:\> Get-AzGalleryApplicationVersion -GalleryName $GalleryName -ResourceGroupName $rgName -GalleryApplicationName $galleryAppName
-
+Get-AzGalleryApplicationVersion -GalleryName $GalleryName -ResourceGroupName $rgName -GalleryApplicationName $galleryAppName
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -54,7 +52,7 @@ INPUTOBJECT : Identity Parameter
https://docs.microsoft.com/powershell/module/az.compute/get-azgalleryapplicationversion
#>
function Get-AzGalleryApplicationVersion {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -164,6 +162,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Compute.private\Get-AzGalleryApplicationVersion_Get';
GetViaIdentity = 'Az.Compute.private\Get-AzGalleryApplicationVersion_GetViaIdentity';
@@ -179,6 +195,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -187,17 +204,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -206,16 +240,14 @@ Retrieves information about a gallery Application Definition.
.Description
Retrieves information about a gallery Application Definition.
.Example
-PS C:\> Get-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -name $galleryAppName
-
+Get-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -name $galleryAppName
.Example
-PS C:\> Get-AzGalleryApplication -GalleryName $GalleryName -ResourceGroupName $rgName
-
+Get-AzGalleryApplication -GalleryName $GalleryName -ResourceGroupName $rgName
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -240,7 +272,7 @@ INPUTOBJECT : Identity Parameter
https://docs.microsoft.com/powershell/module/az.compute/get-azgalleryapplication
#>
function Get-AzGalleryApplication {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -335,6 +367,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Compute.private\Get-AzGalleryApplication_Get';
GetViaIdentity = 'Az.Compute.private\Get-AzGalleryApplication_GetViaIdentity';
@@ -350,6 +400,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -358,17 +409,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -377,19 +445,9 @@ Gets specific run command for a subscription in a location.
.Description
Gets specific run command for a subscription in a location.
.Example
-PS C:\> Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand2"
-
-Location Name Type
--------- ---- ----
-eastus firstruncommand2 Microsoft.Compute/virtualMachines/runCommands
+Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand2"
.Example
-PS C:\> Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname
-
-Location Name Type
--------- ---- ----
-eastus firstruncommand Microsoft.Compute/virtualMachines/runCommands
-eastus firstruncommand2 Microsoft.Compute/virtualMachines/runCommands
-eastus firstruncommand3 Microsoft.Compute/virtualMachines/runCommands
+Get-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -539,6 +597,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Compute.private\Get-AzVMRunCommand_Get';
Get1 = 'Az.Compute.private\Get-AzVMRunCommand_Get1';
@@ -556,6 +632,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -564,17 +641,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -583,17 +677,9 @@ The operation to get the VMSS VM run command.
.Description
The operation to get the VMSS VM run command.
.Example
-PS C:\> Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
-
-Location Name Type
--------- ---- ----
-eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
+Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
.Example
-PS C:\> Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -VMScaleSetName $vmssname
-
-Location Name Type
--------- ---- ----
-eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
+Get-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -VMScaleSetName $vmssname
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -730,6 +816,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Get = 'Az.Compute.private\Get-AzVmssVMRunCommand_Get';
GetViaIdentity = 'Az.Compute.private\Get-AzVmssVMRunCommand_GetViaIdentity';
@@ -745,6 +849,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -753,17 +858,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -772,8 +894,7 @@ Delete a gallery Application Version.
.Description
Delete a gallery Application Version.
.Example
-PS C:\> Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -Name $name
-
+Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -Name $name
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -919,6 +1040,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Compute.private\Remove-AzGalleryApplicationVersion_Delete';
DeleteViaIdentity = 'Az.Compute.private\Remove-AzGalleryApplicationVersion_DeleteViaIdentity';
@@ -933,6 +1072,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -941,17 +1081,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -960,8 +1117,7 @@ Delete a gallery Application.
.Description
Delete a gallery Application.
.Example
-PS C:\> Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -Name $name
-
+Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -Name $name
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -1101,6 +1257,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Compute.private\Remove-AzGalleryApplication_Delete';
DeleteViaIdentity = 'Az.Compute.private\Remove-AzGalleryApplication_DeleteViaIdentity';
@@ -1115,6 +1289,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -1123,17 +1298,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -1142,8 +1334,7 @@ The operation to delete the run command.
.Description
The operation to delete the run command.
.Example
-PS C:\> Remove-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand"
-
+Remove-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -1282,6 +1473,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Compute.private\Remove-AzVMRunCommand_Delete';
DeleteViaIdentity = 'Az.Compute.private\Remove-AzVMRunCommand_DeleteViaIdentity';
@@ -1296,6 +1505,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -1304,17 +1514,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -1323,8 +1550,7 @@ The operation to delete the VMSS VM run command.
.Description
The operation to delete the VMSS VM run command.
.Example
-PS C:\> Remove-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
-
+Remove-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -1469,6 +1695,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Compute.private\Remove-AzVmssVMRunCommand_Delete';
DeleteViaIdentity = 'Az.Compute.private\Remove-AzVmssVMRunCommand_DeleteViaIdentity';
@@ -1483,6 +1727,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -1491,17 +1736,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -1510,11 +1772,7 @@ The operation to create or update the run command.
.Description
The operation to create or update the run command.
.Example
-PS C:\> Set-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName 'firstruncommand'
-
-Location Name Type
--------- ---- ----
-eastus firstruncommand2 Microsoft.Compute/virtualMachines/runCommands
+Set-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName 'firstruncommand'
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IVirtualMachineRunCommand
@@ -1714,6 +1972,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Compute.private\Set-AzVMRunCommand_UpdateExpanded';
}
@@ -1727,6 +2003,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -1735,17 +2012,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -1754,11 +2048,7 @@ The operation to create or update the VMSS VM run command.
.Description
The operation to create or update the VMSS VM run command.
.Example
-PS C:\> Set-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
-
-Location Name Type
--------- ---- ----
-eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
+Set-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IVirtualMachineRunCommand
@@ -1964,6 +2254,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Compute.private\Set-AzVmssVMRunCommand_UpdateExpanded';
}
@@ -1977,6 +2285,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -1985,17 +2294,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -2004,13 +2330,12 @@ Update a gallery Application Definition.
.Description
Update a gallery Application Definition.
.Example
-PS C:\> Update-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -Name $name -Description "New Description"
-
+Update-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -Name $name -Description "New Description"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2035,7 +2360,7 @@ INPUTOBJECT : Identity Parameter
https://docs.microsoft.com/powershell/module/az.compute/update-azgalleryapplication
#>
function Update-AzGalleryApplication {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -2083,7 +2408,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IUpdateResourceDefinitionTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IUpdateResourceDefinitionTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
@@ -2155,6 +2480,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Compute.private\Update-AzGalleryApplication_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.Compute.private\Update-AzGalleryApplication_UpdateViaIdentityExpanded';
@@ -2169,6 +2512,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -2177,17 +2521,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -2196,16 +2557,15 @@ Create or update a gallery Application Definition.
.Description
Create or update a gallery Application Definition.
.Example
-PS C:\> New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
-
+New-AzGalleryApplication -ResourceGroupName $rgName -Location EastUS -GalleryName $galleryName -Name $name -SupportedOSType Windows
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication
.Link
https://docs.microsoft.com/powershell/module/az.compute/new-azgalleryapplication
#>
function New-AzGalleryApplication {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -2338,6 +2698,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
__AllParameterSets = 'Az.Compute.custom\New-AzGalleryApplication';
}
@@ -2351,6 +2729,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -2359,17 +2738,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -2378,17 +2774,16 @@ Create or update a gallery Application Version.
.Description
Create or update a gallery Application Version.
.Example
-PS C:\> $ctx = New-AzStorageContext -StorageAccountName $storAccName
-PS C:\> $SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
-PS C:\> $storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
-PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
-PS C:\> $SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
-PS C:\> $SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
-PS C:\> 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"
-
+$ctx = New-AzStorageContext -StorageAccountName $storAccName
+$SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
+$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
+$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
+$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
+$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
+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"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2401,12 +2796,14 @@ TARGETREGION : The target regions where the Image Version is go
[DiskEncryptionSetId ]: A relative URI containing the resource ID of the disk encryption set.
[OSDiskImageDiskEncryptionSetId ]: A relative URI containing the resource ID of the disk encryption set.
[RegionalReplicaCount ]: The number of replicas of the Image Version to be created per region. This property is updatable.
+ [SecurityProfileConfidentialVMEncryptionType ]: confidential VM encryption types
+ [SecurityProfileSecureVMDiskEncryptionSetId ]: secure VM disk encryption set id
[StorageAccountType ]: Specifies the storage account type to be used to store the image. This property is not updatable.
.Link
https://docs.microsoft.com/powershell/module/az.compute/new-azgalleryapplicationversion
#>
function New-AzGalleryApplicationVersion {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -2513,7 +2910,7 @@ param(
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ITargetRegion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ITargetRegion[]]
# The target regions where the Image Version is going to be replicated to.
# This property is updatable.
# To construct, see NOTES section for TARGETREGION properties and create a hash table.
@@ -2528,6 +2925,24 @@ param(
# This is limited to 4096 characters.
${Update},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
+ [System.String]
+ # Optional.
+ # The name to assign the downloaded package file on the VM.
+ # This is limited to 4096 characters.
+ # If not specified, the package file will be named the same as the Gallery Application name.
+ ${PackageFileName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
+ [System.String]
+ # Optional.
+ # The name to assign the downloaded config file on the VM.
+ # This is limited to 4096 characters.
+ # If not specified, the config file will be named the Gallery Application name appended with "_config".
+ ${ConfigFileName},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2595,6 +3010,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
CreateExpanded = 'Az.Compute.custom\New-AzGalleryApplicationVersion';
}
@@ -2608,6 +3041,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -2616,17 +3050,34 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
<#
@@ -2635,18 +3086,18 @@ Update a gallery Application Version.
.Description
Update a gallery Application Version.
.Example
-PS C:\> $ctx = New-AzStorageContext -StorageAccountName $storAccName
-PS C:\> $SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
-PS C:\> $storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
-PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
-PS C:\> $SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
-PS C:\> $SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
-PS C:\> Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
+$ctx = New-AzStorageContext -StorageAccountName $storAccName
+$SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
+$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
+$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
+$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
+$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
+Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2675,12 +3126,14 @@ TARGETREGION : The target regions where the Image Version is go
[DiskEncryptionSetId ]: A relative URI containing the resource ID of the disk encryption set.
[OSDiskImageDiskEncryptionSetId ]: A relative URI containing the resource ID of the disk encryption set.
[RegionalReplicaCount ]: The number of replicas of the Image Version to be created per region. This property is updatable.
+ [SecurityProfileConfidentialVMEncryptionType ]: confidential VM encryption types
+ [SecurityProfileSecureVMDiskEncryptionSetId ]: secure VM disk encryption set id
[StorageAccountType ]: Specifies the storage account type to be used to store the image. This property is not updatable.
.Link
https://docs.microsoft.com/powershell/module/az.compute/update-azgalleryapplicationversion
#>
function Update-AzGalleryApplicationVersion {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -2764,7 +3217,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IUpdateResourceDefinitionTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IUpdateResourceDefinitionTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
@@ -2772,7 +3225,7 @@ param(
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ITargetRegion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ITargetRegion[]]
# The target regions where the Image Version is going to be replicated to.
# This property is updatable.
# To construct, see NOTES section for TARGETREGION properties and create a hash table.
@@ -2845,6 +3298,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Compute.custom\Update-AzGalleryApplicationVersion';
UpdateViaIdentityExpanded = 'Az.Compute.custom\Update-AzGalleryApplicationVersion';
@@ -2859,6 +3330,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -2867,15 +3339,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Remove-AzGalleryApplication.ps1 b/src/Compute/Compute.Autorest/exports/Remove-AzGalleryApplication.ps1
index 768916ce48c8..01247746c775 100644
--- a/src/Compute/Compute.Autorest/exports/Remove-AzGalleryApplication.ps1
+++ b/src/Compute/Compute.Autorest/exports/Remove-AzGalleryApplication.ps1
@@ -20,8 +20,7 @@ Delete a gallery Application.
.Description
Delete a gallery Application.
.Example
-PS C:\> Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -Name $name
-
+Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -Name $name
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -161,6 +160,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Compute.private\Remove-AzGalleryApplication_Delete';
DeleteViaIdentity = 'Az.Compute.private\Remove-AzGalleryApplication_DeleteViaIdentity';
@@ -175,6 +192,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -183,15 +201,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Remove-AzGalleryApplicationVersion.ps1 b/src/Compute/Compute.Autorest/exports/Remove-AzGalleryApplicationVersion.ps1
index 5aaf0235cb30..e43213f38ef5 100644
--- a/src/Compute/Compute.Autorest/exports/Remove-AzGalleryApplicationVersion.ps1
+++ b/src/Compute/Compute.Autorest/exports/Remove-AzGalleryApplicationVersion.ps1
@@ -20,8 +20,7 @@ Delete a gallery Application Version.
.Description
Delete a gallery Application Version.
.Example
-PS C:\> Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -Name $name
-
+Remove-AzGalleryApplication -ResourceGroupName $rgNmae -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -Name $name
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -167,6 +166,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Compute.private\Remove-AzGalleryApplicationVersion_Delete';
DeleteViaIdentity = 'Az.Compute.private\Remove-AzGalleryApplicationVersion_DeleteViaIdentity';
@@ -181,6 +198,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -189,15 +207,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Remove-AzVMRunCommand.ps1 b/src/Compute/Compute.Autorest/exports/Remove-AzVMRunCommand.ps1
index 22a2ba172d7a..1f6495959936 100644
--- a/src/Compute/Compute.Autorest/exports/Remove-AzVMRunCommand.ps1
+++ b/src/Compute/Compute.Autorest/exports/Remove-AzVMRunCommand.ps1
@@ -20,8 +20,7 @@ The operation to delete the run command.
.Description
The operation to delete the run command.
.Example
-PS C:\> Remove-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand"
-
+Remove-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName "firstruncommand"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -160,6 +159,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Compute.private\Remove-AzVMRunCommand_Delete';
DeleteViaIdentity = 'Az.Compute.private\Remove-AzVMRunCommand_DeleteViaIdentity';
@@ -174,6 +191,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -182,15 +200,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Remove-AzVmssVMRunCommand.ps1 b/src/Compute/Compute.Autorest/exports/Remove-AzVmssVMRunCommand.ps1
index 4d140bdf8845..85e79f550a89 100644
--- a/src/Compute/Compute.Autorest/exports/Remove-AzVmssVMRunCommand.ps1
+++ b/src/Compute/Compute.Autorest/exports/Remove-AzVmssVMRunCommand.ps1
@@ -20,8 +20,7 @@ The operation to delete the VMSS VM run command.
.Description
The operation to delete the VMSS VM run command.
.Example
-PS C:\> Remove-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
-
+Remove-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
@@ -166,6 +165,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
Delete = 'Az.Compute.private\Remove-AzVmssVMRunCommand_Delete';
DeleteViaIdentity = 'Az.Compute.private\Remove-AzVmssVMRunCommand_DeleteViaIdentity';
@@ -180,6 +197,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -188,15 +206,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Set-AzVMRunCommand.ps1 b/src/Compute/Compute.Autorest/exports/Set-AzVMRunCommand.ps1
index 21b40da4c43f..7dc4a846017d 100644
--- a/src/Compute/Compute.Autorest/exports/Set-AzVMRunCommand.ps1
+++ b/src/Compute/Compute.Autorest/exports/Set-AzVMRunCommand.ps1
@@ -20,11 +20,7 @@ The operation to create or update the run command.
.Description
The operation to create or update the run command.
.Example
-PS C:\> Set-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName 'firstruncommand'
-
-Location Name Type
--------- ---- ----
-eastus firstruncommand2 Microsoft.Compute/virtualMachines/runCommands
+Set-AzVMRunCommand -ResourceGroupName $rgname -VMName $vmname -RunCommandName 'firstruncommand'
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IVirtualMachineRunCommand
@@ -224,6 +220,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Compute.private\Set-AzVMRunCommand_UpdateExpanded';
}
@@ -237,6 +251,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -245,15 +260,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Set-AzVmssVMRunCommand.ps1 b/src/Compute/Compute.Autorest/exports/Set-AzVmssVMRunCommand.ps1
index b1e3429508b7..18e8e538e9fc 100644
--- a/src/Compute/Compute.Autorest/exports/Set-AzVmssVMRunCommand.ps1
+++ b/src/Compute/Compute.Autorest/exports/Set-AzVmssVMRunCommand.ps1
@@ -20,11 +20,7 @@ The operation to create or update the VMSS VM run command.
.Description
The operation to create or update the VMSS VM run command.
.Example
-PS C:\> Set-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
-
-Location Name Type
--------- ---- ----
-eastus first Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands
+Set-AzVmssVMRunCommand -InstanceId 3 -ResourceGroupName $rgname -RunCommandName "first" -VMScaleSetName $vmssname
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IVirtualMachineRunCommand
@@ -230,6 +226,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Compute.private\Set-AzVmssVMRunCommand_UpdateExpanded';
}
@@ -243,6 +257,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -251,15 +266,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Update-AzGalleryApplication.ps1 b/src/Compute/Compute.Autorest/exports/Update-AzGalleryApplication.ps1
index 7554f9c97160..9a06f5e6e8ae 100644
--- a/src/Compute/Compute.Autorest/exports/Update-AzGalleryApplication.ps1
+++ b/src/Compute/Compute.Autorest/exports/Update-AzGalleryApplication.ps1
@@ -20,13 +20,12 @@ Update a gallery Application Definition.
.Description
Update a gallery Application Definition.
.Example
-PS C:\> Update-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -Name $name -Description "New Description"
-
+Update-AzGalleryApplication -ResourceGroupName $rgName -GalleryName $galleryName -Name $name -Description "New Description"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -51,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://docs.microsoft.com/powershell/module/az.compute/update-azgalleryapplication
#>
function Update-AzGalleryApplication {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplication])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplication])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -99,7 +98,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IUpdateResourceDefinitionTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IUpdateResourceDefinitionTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
@@ -171,6 +170,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Compute.private\Update-AzGalleryApplication_UpdateExpanded';
UpdateViaIdentityExpanded = 'Az.Compute.private\Update-AzGalleryApplication_UpdateViaIdentityExpanded';
@@ -185,6 +202,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -193,15 +211,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/exports/Update-AzGalleryApplicationVersion.ps1 b/src/Compute/Compute.Autorest/exports/Update-AzGalleryApplicationVersion.ps1
index 63ef54635a9f..21201382ffd4 100644
--- a/src/Compute/Compute.Autorest/exports/Update-AzGalleryApplicationVersion.ps1
+++ b/src/Compute/Compute.Autorest/exports/Update-AzGalleryApplicationVersion.ps1
@@ -20,18 +20,18 @@ Update a gallery Application Version.
.Description
Update a gallery Application Version.
.Example
-PS C:\> $ctx = New-AzStorageContext -StorageAccountName $storAccName
-PS C:\> $SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
-PS C:\> $storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
-PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
-PS C:\> $SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
-PS C:\> $SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
-PS C:\> Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
+$ctx = New-AzStorageContext -StorageAccountName $storAccName
+$SASToken = new-azstorageblobsastoken -Context $ctx -Container $containerName -blob $blobName -Permission r
+$storAcc = Get-AzStorageAccount -ResourceGroupName $rgName -Name $storAccName
+$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $storAcc.Context
+$SASToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission rwd -Context $storAcc.Context
+$SASUri = $blob.ICloudBlob.Uri.AbsoluteUri + "?" +$SASToken
+Update-AzGalleryApplicationVersion -ResourceGroupName $rgname -Location EastUS -GalleryName $galleryName -GalleryApplicationName $galleryApplicationName -name "0.1.0" -PackageFileLink $SASUri -ReplicaCount 3
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion
+Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -60,12 +60,14 @@ TARGETREGION : The target regions where the Image Version is go
[DiskEncryptionSetId ]: A relative URI containing the resource ID of the disk encryption set.
[OSDiskImageDiskEncryptionSetId ]: A relative URI containing the resource ID of the disk encryption set.
[RegionalReplicaCount ]: The number of replicas of the Image Version to be created per region. This property is updatable.
+ [SecurityProfileConfidentialVMEncryptionType ]: confidential VM encryption types
+ [SecurityProfileSecureVMDiskEncryptionSetId ]: secure VM disk encryption set id
[StorageAccountType ]: Specifies the storage account type to be used to store the image. This property is not updatable.
.Link
https://docs.microsoft.com/powershell/module/az.compute/update-azgalleryapplicationversion
#>
function Update-AzGalleryApplicationVersion {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGalleryApplicationVersion])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -149,7 +151,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IUpdateResourceDefinitionTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IUpdateResourceDefinitionTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
@@ -157,7 +159,7 @@ param(
[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.ITargetRegion[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.ITargetRegion[]]
# The target regions where the Image Version is going to be replicated to.
# This property is updatable.
# To construct, see NOTES section for TARGETREGION properties and create a hash table.
@@ -230,6 +232,24 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
$mapping = @{
UpdateExpanded = 'Az.Compute.custom\Update-AzGalleryApplicationVersion';
UpdateViaIdentityExpanded = 'Az.Compute.custom\Update-AzGalleryApplicationVersion';
@@ -244,6 +264,7 @@ begin {
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
@@ -252,15 +273,32 @@ process {
try {
$steppablePipeline.Process($_)
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
end {
try {
$steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Compute.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
} catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
-}
+}
}
diff --git a/src/Compute/Compute.Autorest/generate-info.json b/src/Compute/Compute.Autorest/generate-info.json
new file mode 100644
index 000000000000..ff41c8ee67f6
--- /dev/null
+++ b/src/Compute/Compute.Autorest/generate-info.json
@@ -0,0 +1,8 @@
+{
+ "swagger_commit": "fc2245b8f0fe6f17628e3b5a306b4b150c73cff0",
+ "autorest": "`-- (empty)",
+ "node": "v14.15.5",
+ "autorest_powershell": "3.0.491",
+ "autorest_core": "3.8.4",
+ "autorest_modelerfour": "4.15.414"
+}
diff --git a/src/Compute/Compute.Autorest/generated/Module.cs b/src/Compute/Compute.Autorest/generated/Module.cs
index 61dc9f59d2e9..0ceba6e9bb36 100644
--- a/src/Compute/Compute.Autorest/generated/Module.cs
+++ b/src/Compute/Compute.Autorest/generated/Module.cs
@@ -11,6 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Compute
using GetParameterDelegate = global::System.Func;
using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>;
using ArgumentCompleterDelegate = global::System.Func;
+ using GetTelemetryIdDelegate = global::System.Func;
+ using TelemetryDelegate = global::System.Action;
using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>;
using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>;
using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>;
@@ -30,6 +32,8 @@ public partial class Module
/// the ISendAsync pipeline instance (when proxy is enabled)
private Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.HttpPipeline _pipelineWithProxy;
+ public bool _useProxy = false;
+
public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy();
/// Gets completion data for azure specific fields
@@ -44,6 +48,9 @@ public partial class Module
/// The delegate to call to get parameter data from a common module.
public GetParameterDelegate GetParameterValue { get; set; }
+ /// The delegate to get the telemetry Id.
+ public GetTelemetryIdDelegate GetTelemetryId { get; set; }
+
/// Backing field for property.
private static Microsoft.Azure.PowerShell.Cmdlets.Compute.Module _instance;
@@ -65,6 +72,9 @@ public partial class Module
/// The ResourceID for this module (azure arm).
public string ResourceId => @"Az.Compute";
+ /// The delegate for creating a telemetry.
+ public TelemetryDelegate Telemetry { get; set; }
+
/// The from the cmdlet
/// The HttpPipeline for the request
@@ -88,7 +98,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.HttpPipeline CreatePip
{
Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.HttpPipeline pipeline = null;
BeforeCreatePipeline(invocationInfo, ref pipeline);
- pipeline = (pipeline ?? (_handler.UseProxy ? _pipelineWithProxy : _pipeline)).Clone();
+ pipeline = (pipeline ?? (_useProxy ? _pipelineWithProxy : _pipeline)).Clone();
AfterCreatePipeline(invocationInfo, ref pipeline);
pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync);
OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } );
@@ -115,7 +125,7 @@ public void Init()
/// Creates the module instance.
private Module()
{
- /// constructor
+ // constructor
ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.Compute.Compute();
_handler.Proxy = _webProxy;
_pipeline = new Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient()));
@@ -127,12 +137,24 @@ private Module()
/// True if the proxy should use default credentials
public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials)
{
+ _useProxy = proxy != null;
+ if (proxy == null)
+ {
+ return;
+ }
// set the proxy configuration
_webProxy.Address = proxy;
_webProxy.BypassProxyOnLocal = false;
- _webProxy.Credentials = proxyCredential ?.GetNetworkCredential();
- _webProxy.UseDefaultCredentials = proxyUseDefaultCredentials;
- _handler.UseProxy = proxy != null;
+ if (proxyUseDefaultCredentials)
+ {
+ _webProxy.Credentials = null;
+ _webProxy.UseDefaultCredentials = true;
+ }
+ else
+ {
+ _webProxy.UseDefaultCredentials = false;
+ _webProxy.Credentials = proxyCredential ?.GetNetworkCredential();
+ }
}
/// Called to dispatch events to the common module listener
diff --git a/src/Compute/Compute.Autorest/generated/api/Compute.cs b/src/Compute/Compute.Autorest/generated/api/Compute.cs
index 6fcf9563bd70..f73af44e4b01 100644
--- a/src/Compute/Compute.Autorest/generated/api/Compute.cs
+++ b/src/Compute/Compute.Autorest/generated/api/Compute.cs
@@ -29,9 +29,9 @@ public partial class Compute
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate(string subscriptionId, string resourceGroupName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGallery body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate(string subscriptionId, string resourceGroupName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGallery body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
{
- var apiVersion = @"2021-07-01";
+ var apiVersion = @"2022-01-03";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -75,15 +75,15 @@ public partial class Compute
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task GalleriesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGallery body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task GalleriesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGallery body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
{
- var apiVersion = @"2021-07-01";
+ var apiVersion = @"2022-01-03";
// Constant Parameters
using( NoSynchronizationContext )
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/galleries/(?[^/]+)$").Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/galleries/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
if (!_match.Success)
{
throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}'");
@@ -132,7 +132,7 @@ public partial class Compute
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -238,6 +238,7 @@ public partial class Compute
// make the final call
_response = await sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
break;
}
}
@@ -248,7 +249,7 @@ public partial class Compute
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Gallery.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.Gallery.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -283,7 +284,7 @@ public partial class Compute
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IGallery body, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGallery body, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -311,7 +312,7 @@ public partial class Compute
///
public async global::System.Threading.Tasks.Task GalleriesDelete(string subscriptionId, string resourceGroupName, string galleryName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
{
- var apiVersion = @"2021-07-01";
+ var apiVersion = @"2022-01-03";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -353,13 +354,13 @@ public partial class Compute
///
public async global::System.Threading.Tasks.Task GalleriesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
{
- var apiVersion = @"2021-07-01";
+ var apiVersion = @"2022-01-03";
// Constant Parameters
using( NoSynchronizationContext )
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/galleries/(?[^/]+)$").Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/galleries/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
if (!_match.Success)
{
throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}'");
@@ -512,6 +513,7 @@ public partial class Compute
// make the final call
_response = await sender.SendAsync(request, eventListener);
+ await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
break;
}
}
@@ -577,6 +579,7 @@ public partial class Compute
/// The name of the resource group.
/// The name of the Shared Image Gallery.
/// The select expression to apply on the operation.
+ /// The expand query option to apply on the operation.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
@@ -585,9 +588,9 @@ public partial class Compute
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task GalleriesGet(string subscriptionId, string resourceGroupName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.SelectPermissions? Select, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task GalleriesGet(string subscriptionId, string resourceGroupName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.SelectPermissions? Select, Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.GalleryExpandParams? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
{
- var apiVersion = @"2021-07-01";
+ var apiVersion = @"2022-01-03";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -603,6 +606,8 @@ public partial class Compute
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ "&"
+ (string.IsNullOrEmpty(Select) ? global::System.String.Empty : "$select=" + global::System.Uri.EscapeDataString(Select))
+ + "&"
+ + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand))
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
@@ -621,6 +626,7 @@ public partial class Compute
/// Retrieves information about a Shared Image Gallery.
///
/// The select expression to apply on the operation.
+ /// The expand query option to apply on the operation.
/// a delegate that is called when the remote service returns 200 (OK).
/// a delegate that is called when the remote service returns default (any response code not handled
/// elsewhere).
@@ -629,15 +635,15 @@ public partial class Compute
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task GalleriesGetViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.SelectPermissions? Select, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task GalleriesGetViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.SelectPermissions? Select, Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.GalleryExpandParams? Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
{
- var apiVersion = @"2021-07-01";
+ var apiVersion = @"2022-01-03";
// Constant Parameters
using( NoSynchronizationContext )
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/galleries/(?[^/]+)$").Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Compute/galleries/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity);
if (!_match.Success)
{
throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}'");
@@ -659,6 +665,8 @@ public partial class Compute
+ "api-version=" + global::System.Uri.EscapeDataString(apiVersion)
+ "&"
+ (string.IsNullOrEmpty(Select) ? global::System.String.Empty : "$select=" + global::System.Uri.EscapeDataString(Select))
+ + "&"
+ + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand))
,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2");
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; }
@@ -684,7 +692,7 @@ public partial class Compute
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task GalleriesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task GalleriesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -702,7 +710,7 @@ public partial class Compute
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.Gallery.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.Gallery.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -732,11 +740,12 @@ public partial class Compute
/// The name of the resource group.
/// The name of the Shared Image Gallery.
/// The select expression to apply on the operation.
+ /// The expand query option to apply on the operation.
/// an instance that will receive events.
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task GalleriesGet_Validate(string subscriptionId, string resourceGroupName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.SelectPermissions? Select, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task GalleriesGet_Validate(string subscriptionId, string resourceGroupName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.SelectPermissions? Select, Microsoft.Azure.PowerShell.Cmdlets.Compute.Support.GalleryExpandParams? Expand, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -745,6 +754,8 @@ public partial class Compute
await eventListener.AssertNotNull(nameof(galleryName),galleryName);
await eventListener.AssertNotNull(nameof(Select),Select);
await eventListener.AssertEnum(nameof(Select),Select,@"Permissions");
+ await eventListener.AssertNotNull(nameof(Expand),Expand);
+ await eventListener.AssertEnum(nameof(Expand),Expand,@"SharingProfile/Groups");
}
}
@@ -759,9 +770,9 @@ public partial class Compute
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task GalleriesList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task GalleriesList(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func