Skip to content

Commit a793625

Browse files
Migrate ElasticSan from generation to main (#22352)
* Move ElasticSan to main * Update ChangeLog.md --------- Co-authored-by: NanxiangLiu <[email protected]>
1 parent 3249b7f commit a793625

File tree

330 files changed

+18974
-5549
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

330 files changed

+18974
-5549
lines changed

src/ElasticSan/Az.ElasticSan.format.ps1xml

Lines changed: 512 additions & 82 deletions
Large diffs are not rendered by default.

src/ElasticSan/Az.ElasticSan.psd1

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

99
@{

src/ElasticSan/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added support for private endpoint for ElasticSan
2122

2223
## Version 0.1.0
2324
* First preview release for module Az.ElasticSan

src/ElasticSan/ElasticSan.sln

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{BDF86514-BB95-4605-A579-AAD99C9205F6}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{5CF19AE9-DC5A-4453-9BBB-6DE5030B20CC}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{38BDBD0E-E911-40D7-AF20-6A42EA35167D}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{3E8180AF-E205-4497-A922-171C4FD68788}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{2D63A6D1-C085-4751-BB04-64C5BFC384CD}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{791E9421-AA0C-4956-90F7-B2FA414C5B2F}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{8FEA2607-D7CB-4DDF-AF3B-22C1763C6C9F}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{037007FC-5DD6-4831-8BF8-E45066F89935}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{55AD8F7C-26BA-46B0-A7EE-2C222D056370}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{AF179507-8215-43BB-8E96-1312A0971F5C}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{A0DC2FEE-94F9-4BF5-AFD2-1C745B334859}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{EAD28AC7-EA05-4B40-9098-9DF0B130F6E3}"
1717
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ElasticSan", "Az.ElasticSan.csproj", "{8984E6C8-C68E-4F96-909B-9357B2E12938}"
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ElasticSan", "Az.ElasticSan.csproj", "{C72A3296-E47D-43AE-99A2-B3B5B5794E4C}"
1919
EndProject
2020
Global
2121
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,33 +26,33 @@ Global
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29-
{BDF86514-BB95-4605-A579-AAD99C9205F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{BDF86514-BB95-4605-A579-AAD99C9205F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{BDF86514-BB95-4605-A579-AAD99C9205F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{BDF86514-BB95-4605-A579-AAD99C9205F6}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{38BDBD0E-E911-40D7-AF20-6A42EA35167D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{38BDBD0E-E911-40D7-AF20-6A42EA35167D}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{38BDBD0E-E911-40D7-AF20-6A42EA35167D}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{38BDBD0E-E911-40D7-AF20-6A42EA35167D}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{2D63A6D1-C085-4751-BB04-64C5BFC384CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{2D63A6D1-C085-4751-BB04-64C5BFC384CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{2D63A6D1-C085-4751-BB04-64C5BFC384CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{2D63A6D1-C085-4751-BB04-64C5BFC384CD}.Release|Any CPU.Build.0 = Release|Any CPU
41-
{8FEA2607-D7CB-4DDF-AF3B-22C1763C6C9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42-
{8FEA2607-D7CB-4DDF-AF3B-22C1763C6C9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
43-
{8FEA2607-D7CB-4DDF-AF3B-22C1763C6C9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
44-
{8FEA2607-D7CB-4DDF-AF3B-22C1763C6C9F}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{55AD8F7C-26BA-46B0-A7EE-2C222D056370}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46-
{55AD8F7C-26BA-46B0-A7EE-2C222D056370}.Debug|Any CPU.Build.0 = Debug|Any CPU
47-
{55AD8F7C-26BA-46B0-A7EE-2C222D056370}.Release|Any CPU.ActiveCfg = Release|Any CPU
48-
{55AD8F7C-26BA-46B0-A7EE-2C222D056370}.Release|Any CPU.Build.0 = Release|Any CPU
49-
{A0DC2FEE-94F9-4BF5-AFD2-1C745B334859}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50-
{A0DC2FEE-94F9-4BF5-AFD2-1C745B334859}.Debug|Any CPU.Build.0 = Debug|Any CPU
51-
{A0DC2FEE-94F9-4BF5-AFD2-1C745B334859}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{A0DC2FEE-94F9-4BF5-AFD2-1C745B334859}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{8984E6C8-C68E-4F96-909B-9357B2E12938}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54-
{8984E6C8-C68E-4F96-909B-9357B2E12938}.Debug|Any CPU.Build.0 = Debug|Any CPU
55-
{8984E6C8-C68E-4F96-909B-9357B2E12938}.Release|Any CPU.ActiveCfg = Release|Any CPU
56-
{8984E6C8-C68E-4F96-909B-9357B2E12938}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{5CF19AE9-DC5A-4453-9BBB-6DE5030B20CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{5CF19AE9-DC5A-4453-9BBB-6DE5030B20CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{5CF19AE9-DC5A-4453-9BBB-6DE5030B20CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{5CF19AE9-DC5A-4453-9BBB-6DE5030B20CC}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{3E8180AF-E205-4497-A922-171C4FD68788}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{3E8180AF-E205-4497-A922-171C4FD68788}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{3E8180AF-E205-4497-A922-171C4FD68788}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{3E8180AF-E205-4497-A922-171C4FD68788}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{791E9421-AA0C-4956-90F7-B2FA414C5B2F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{791E9421-AA0C-4956-90F7-B2FA414C5B2F}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{791E9421-AA0C-4956-90F7-B2FA414C5B2F}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{791E9421-AA0C-4956-90F7-B2FA414C5B2F}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{037007FC-5DD6-4831-8BF8-E45066F89935}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{037007FC-5DD6-4831-8BF8-E45066F89935}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{037007FC-5DD6-4831-8BF8-E45066F89935}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{037007FC-5DD6-4831-8BF8-E45066F89935}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{AF179507-8215-43BB-8E96-1312A0971F5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{AF179507-8215-43BB-8E96-1312A0971F5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{AF179507-8215-43BB-8E96-1312A0971F5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{AF179507-8215-43BB-8E96-1312A0971F5C}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{EAD28AC7-EA05-4B40-9098-9DF0B130F6E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{EAD28AC7-EA05-4B40-9098-9DF0B130F6E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{EAD28AC7-EA05-4B40-9098-9DF0B130F6E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{EAD28AC7-EA05-4B40-9098-9DF0B130F6E3}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{C72A3296-E47D-43AE-99A2-B3B5B5794E4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{C72A3296-E47D-43AE-99A2-B3B5B5794E4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{C72A3296-E47D-43AE-99A2-B3B5B5794E4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{C72A3296-E47D-43AE-99A2-B3B5B5794E4C}.Release|Any CPU.Build.0 = Release|Any CPU
5757
EndGlobalSection
5858
EndGlobal

src/ElasticSan/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ For information on how to develop for `Az.ElasticSan`, see [how-to.md](how-to.md
3131
3232
``` yaml
3333
# Please specify the commit id that includes your features to make sure generated codes stable.
34-
branch: ce6d86734f244e44e4ae39952f62c324d8fe6817
34+
branch: 3794130ff888bf159dc93dd8d673415863df0cd6
3535
require:
3636
- $(this-folder)/../readme.azure.noprofile.md
3737
input-file:
38-
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/elasticsan.json
38+
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/elasticsan.json
3939

4040
# Normally, title is the service name
4141
title: ElasticSan
4242
# For new RP, the version is 0.1.0
43-
module-version: 0.1.0
43+
module-version: 0.2.0
4444
subject-prefix: $(service-name)
4545

4646
# If there are post APIs for some kinds of actions in the RP, you may need to
@@ -98,4 +98,7 @@ directive:
9898
- from: swagger-document
9999
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}"].get
100100
transform: $["description"] = "Get either a list of all volumes from a volume group or get a single volume from a volume group."
101+
- where:
102+
subject: ^PrivateEndpointConnection$|^PrivateLinkResource$
103+
hide: true
101104
```

src/ElasticSan/custom/Add-AzElasticSanVolumeGroupNetworkRule.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ NETWORKACLSVIRTUALNETWORKRULE <IVirtualNetworkRule[]>: The list of virtual netwo
4040
[Action <Action?>]: The action of virtual network rule.
4141
#>
4242
function Add-AzElasticSanVolumeGroupNetworkRule {
43-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule[]])]
43+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.VirtualNetworkRule[]])]
4444
[CmdletBinding(DefaultParameterSetName='NetworkRuleObject', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
4545
param(
4646
[Parameter(ParameterSetName='NetworkRuleObject', Mandatory)]
@@ -75,7 +75,7 @@ function Add-AzElasticSanVolumeGroupNetworkRule {
7575

7676
[Parameter(ParameterSetName='NetworkRuleObject', Mandatory, ValueFromPipeline=$true)]
7777
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
78-
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.IVirtualNetworkRule[]]
78+
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.IVirtualNetworkRule[]]
7979
# The list of virtual network rules.
8080
# To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table.
8181
${NetworkAclsVirtualNetworkRule},
@@ -168,9 +168,9 @@ function Add-AzElasticSanVolumeGroupNetworkRule {
168168
return
169169
}
170170

171-
$originalRules = [System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.IVirtualNetworkRule]]$volumeGroup.NetworkAclsVirtualNetworkRule
171+
$originalRules = [System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.IVirtualNetworkRule]]$volumeGroup.NetworkAclsVirtualNetworkRule
172172
if ($originalRules.count -eq 0) {
173-
$originalRules = New-Object System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.IVirtualNetworkRule]
173+
$originalRules = New-Object System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.IVirtualNetworkRule]
174174
}
175175

176176
switch ($PScmdlet.ParameterSetName) {

src/ElasticSan/custom/Remove-AzElasticSanVolumeGroupNetworkRule.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ NETWORKACLSVIRTUALNETWORKRULE <IVirtualNetworkRule[]>: The list of virtual netwo
3636
[Action <Action?>]: The action of virtual network rule.
3737
#>
3838
function Remove-AzElasticSanVolumeGroupNetworkRule {
39-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule[]])]
39+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.VirtualNetworkRule[]])]
4040
[CmdletBinding(DefaultParameterSetName='NetworkRuleObject', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
4141
param(
4242
[Parameter(ParameterSetName='NetworkRuleObject', Mandatory)]
@@ -71,7 +71,7 @@ function Remove-AzElasticSanVolumeGroupNetworkRule {
7171

7272
[Parameter(ParameterSetName='NetworkRuleObject', Mandatory, ValueFromPipeline=$true)]
7373
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
74-
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.IVirtualNetworkRule[]]
74+
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.IVirtualNetworkRule[]]
7575
# The list of virtual network rules.
7676
# To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table.
7777
${NetworkAclsVirtualNetworkRule},
@@ -163,9 +163,9 @@ function Remove-AzElasticSanVolumeGroupNetworkRule {
163163
Write-Error $_.Exception
164164
return
165165
}
166-
$originalRules = [System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.IVirtualNetworkRule]]$volumeGroup.NetworkAclsVirtualNetworkRule
166+
$originalRules = [System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.IVirtualNetworkRule]]$volumeGroup.NetworkAclsVirtualNetworkRule
167167
if ($originalRules.count -eq 0) {
168-
$originalRules = New-Object System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.IVirtualNetworkRule]
168+
$originalRules = New-Object System.Collections.Generic.List[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.IVirtualNetworkRule]
169169
}
170170

171171
switch ($PSCmdlet.ParameterSetName) {

src/ElasticSan/custom/autogen-model-cmdlets/New-AzElasticSanVirtualNetworkRuleObject.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ Create an in-memory object for VirtualNetworkRule.
2121
Create an in-memory object for VirtualNetworkRule.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule
24+
Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.VirtualNetworkRule
2525
.Link
2626
https://learn.microsoft.com/powershell/module/Az.ElasticSan/new-AzElasticSanVirtualNetworkRuleObject
2727
#>
2828
function New-AzElasticSanVirtualNetworkRuleObject {
29-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule')]
29+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.VirtualNetworkRule')]
3030
[CmdletBinding(PositionalBinding=$false)]
3131
Param(
3232

@@ -40,7 +40,7 @@ function New-AzElasticSanVirtualNetworkRuleObject {
4040
)
4141

4242
process {
43-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule]::New()
43+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20221201Preview.VirtualNetworkRule]::New()
4444

4545
if ($PSBoundParameters.ContainsKey('Action')) {
4646
$Object.Action = $Action

src/ElasticSan/examples/New-AzElasticSanVolume.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Example 1: Create a volume
22
```powershell
3-
New-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolumegroup -SizeGib 100 -CreationDataSourceUri 'https://abc.com' -Tag @{tag1="value1";tag2="value2"}
3+
New-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolumegroup -SizeGib 100 -CreationDataSourceUri 'https://abc.com'
44
```
55

66
```output
@@ -20,7 +20,6 @@ SystemDataCreatedByType : Application
2020
SystemDataLastModifiedAt : 9/19/2022 2:39:28 AM
2121
SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
2222
SystemDataLastModifiedByType : Application
23-
Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
2423
Type : Microsoft.ElasticSan/ElasticSans
2524
VolumeId : abababab-abab-abab-abab-abababababab
2625
```

src/ElasticSan/examples/New-AzElasticSanVolumeGroup.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$virtualNetworkRule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow
44
$virtualNetworkRule2 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" -Action Allow
55
6-
New-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi' -Tag @{tag1="value1";tag2="value2"} -NetworkAclsVirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2
6+
New-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi' -NetworkAclsVirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2
77
```
88

99
```output
@@ -19,15 +19,14 @@ SystemDataCreatedByType : Application
1919
SystemDataLastModifiedAt : 9/19/2022 7:05:47 AM
2020
SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
2121
SystemDataLastModifiedByType : Application
22-
Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
2322
Type : Microsoft.ElasticSan/ElasticSans
2423
```
2524

2625
This example creates two VirtualNetworkRule objects and then input the objects and other variables to create a volume group.
2726

2827
### Example 2: Create a volume group with network rule JSON input
2928
```powershell
30-
New-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi' -Tag @{tag1="value1";tag2="value2"} `
29+
New-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi' `
3130
-NetworkAclsVirtualNetworkRule (
3231
@{VirtualNetworkResourceId="/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1";
3332
Action="Allow"},
@@ -48,7 +47,6 @@ SystemDataCreatedByType : Application
4847
SystemDataLastModifiedAt : 9/19/2022 7:05:47 AM
4948
SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
5049
SystemDataLastModifiedByType : Application
51-
Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
5250
Type : Microsoft.ElasticSan/ElasticSans
5351
```
5452

0 commit comments

Comments
 (0)