File tree Expand file tree Collapse file tree 5 files changed +61
-7
lines changed Expand file tree Collapse file tree 5 files changed +61
-7
lines changed Original file line number Diff line number Diff line change 20
20
21
21
-->
22
22
## Upcoming Release
23
+ * Added ` -EdgeZone ` optional parameter for ` Get-AzComputeResourceSku ` and ` New-AzSnapshotUpdateConfig ` cmdlets.
24
+ * Added Disk Delete Optional parameters ` OsDisk Deletion Option ` and ` Delete Option ` to the ` Set-AzVmssStorageProfile ` (OS Disk) and ` Add-AzVmssDataDisk ` (Data Disk)
25
+ * Improved printed output for ` Get-AzComputeResourceSku `
23
26
* Updated ` Get-AzHost ` cmdlet logic to return Host for ` -ResourceId ` parameterset.
24
27
* For ` New-AzGalleryImageVersion ` , update property mapping for ` Encryption ` .
25
28
Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ public partial class GetAzureRmComputeResourceSku : ComputeAutomationBaseCmdlet
44
44
[ LocationCompleter ( "Microsoft.Compute/locations/publishers" ) ]
45
45
public string Location { get ; set ; }
46
46
47
+ [ Parameter (
48
+ Mandatory = false ,
49
+ ValueFromPipelineByPropertyName = true ,
50
+ HelpMessage = "Sets the edge zone name. If set, the query will be routed to the specified edgezone instead of the main region." ) ]
51
+ public string EdgeZone { get ; set ; }
52
+
47
53
public override void ExecuteCmdlet ( )
48
54
{
49
55
base . ExecuteCmdlet ( ) ;
@@ -53,11 +59,11 @@ public override void ExecuteCmdlet()
53
59
if ( this . IsParameterBound ( c => c . Location ) )
54
60
{
55
61
string filter = String . Format ( "location eq '{0}'" , this . Location ) ;
56
- result = ResourceSkusClient . List ( filter ) ;
62
+ result = ResourceSkusClient . List ( filter , this . EdgeZone ) ;
57
63
}
58
64
else
59
65
{
60
- result = ResourceSkusClient . List ( ) ;
66
+ result = ResourceSkusClient . List ( includeExtendedLocations : this . EdgeZone ) ;
61
67
}
62
68
var resultList = result . ToList ( ) ;
63
69
var nextPageLink = result . NextPageLink ;
Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ public partial class NewAzureRmSnapshotUpdateConfigCommand : Microsoft.Azure.Com
78
78
ValueFromPipelineByPropertyName = true ) ]
79
79
public KeyVaultAndSecretReference DiskEncryptionKey { get ; set ; }
80
80
81
+ [ Parameter (
82
+ Mandatory = false ,
83
+ ValueFromPipelineByPropertyName = true ,
84
+ HelpMessage = "Sets the edge zone name. If set, the query will be routed to the specified edgezone instead of the main region." ) ]
85
+ public string EdgeZone { get ; set ; }
86
+
81
87
[ Parameter (
82
88
Mandatory = false ,
83
89
ValueFromPipelineByPropertyName = true ) ]
@@ -131,6 +137,9 @@ private void Run()
131
137
// Encryption
132
138
Encryption vEncryption = null ;
133
139
140
+ // ExtendedLocation
141
+ ExtendedLocation vExtendedLocation = null ;
142
+
134
143
// Sku
135
144
SnapshotSku vSku = null ;
136
145
@@ -145,6 +154,11 @@ private void Run()
145
154
vEncryptionSettingsCollection . Enabled = ( bool ) this . EncryptionSettingsEnabled ;
146
155
}
147
156
157
+ if ( this . IsParameterBound ( c => c . EdgeZone ) )
158
+ {
159
+ vExtendedLocation = new ExtendedLocation { Name = this . EdgeZone , Type = ExtendedLocationTypes . EdgeZone } ;
160
+ }
161
+
148
162
if ( this . IsParameterBound ( c => c . DiskEncryptionKey ) )
149
163
{
150
164
if ( vEncryptionSettingsCollection == null )
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ List all compute resource Skus
13
13
## SYNTAX
14
14
15
15
```
16
- Get-AzComputeResourceSku [[-Location] <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
16
+ Get-AzComputeResourceSku [[-Location] <String>] [-EdgeZone <String>] [-DefaultProfile <IAzureContextContainer>]
17
+ [<CommonParameters>]
17
18
```
18
19
19
20
## DESCRIPTION
@@ -45,6 +46,21 @@ Accept pipeline input: False
45
46
Accept wildcard characters : False
46
47
` ` `
47
48
49
+ ### -EdgeZone
50
+ Sets the edge zone name. If set, the query will be routed to the specified edgezone instead of the main region.
51
+
52
+ ` ` ` yaml
53
+ Type : System.String
54
+ Parameter Sets : (All)
55
+ Aliases :
56
+
57
+ Required : False
58
+ Position : Named
59
+ Default value : None
60
+ Accept pipeline input : True (ByPropertyName)
61
+ Accept wildcard characters : False
62
+ ` ` `
63
+
48
64
### -Location
49
65
Specifies a location of the available skus to list.
50
66
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ Creates a configurable snapshot update object.
15
15
```
16
16
New-AzSnapshotUpdateConfig [[-SkuName] <String>] [[-OsType] <OperatingSystemTypes>] [[-DiskSizeGB] <Int32>]
17
17
[[-Tag] <Hashtable>] [-SupportsHibernation <Boolean>] [-EncryptionSettingsEnabled <Boolean>]
18
- [-DiskEncryptionKey <KeyVaultAndSecretReference>] [-KeyEncryptionKey <KeyVaultAndKeyReference >]
19
- [-DiskEncryptionSetId <String >] [-EncryptionType <String>] [-PublicNetworkAccess <String>]
20
- [-DataAccessAuthMode <String>] [-Architecture <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf ]
21
- [-Confirm] [<CommonParameters>]
18
+ [-DiskEncryptionKey <KeyVaultAndSecretReference>] [-EdgeZone <String >]
19
+ [-KeyEncryptionKey <KeyVaultAndKeyReference >] [-DiskEncryptionSetId <String>] [-EncryptionType <String>]
20
+ [-PublicNetworkAccess <String>] [-DataAccessAuthMode <String>] [-Architecture <String> ]
21
+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [- Confirm] [<CommonParameters>]
22
22
```
23
23
24
24
## DESCRIPTION
@@ -144,6 +144,21 @@ Accept pipeline input: True (ByPropertyName)
144
144
Accept wildcard characters : False
145
145
` ` `
146
146
147
+ ### -EdgeZone
148
+ Sets the edge zone name. If set, the query will be routed to the specified edgezone instead of the main region.
149
+
150
+ ` ` ` yaml
151
+ Type : System.String
152
+ Parameter Sets : (All)
153
+ Aliases :
154
+
155
+ Required : False
156
+ Position : Named
157
+ Default value : None
158
+ Accept pipeline input : True (ByPropertyName)
159
+ Accept wildcard characters : False
160
+ ` ` `
161
+
147
162
### -EncryptionSettingsEnabled
148
163
Enable encryption settings.
149
164
You can’t perform that action at this time.
0 commit comments