Skip to content

Commit 1cf30e7

Browse files
Move ElasticSan to main (#21969)
1 parent be772ae commit 1cf30e7

File tree

85 files changed

+308
-265
lines changed

Some content is hidden

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

85 files changed

+308
-265
lines changed

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: 9/23/2022
6+
# Generated on: 6/1/2023
77
#
88

99
@{

src/ElasticSan/ElasticSan.sln

Lines changed: 38 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,58 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.6.30114.105
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{8E54E7D5-0836-4A7C-8D7D-41599134A960}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{BDF86514-BB95-4605-A579-AAD99C9205F6}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{0FE04B2B-7917-460E-8F9B-45213919E490}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{38BDBD0E-E911-40D7-AF20-6A42EA35167D}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{2D63A6D1-C085-4751-BB04-64C5BFC384CD}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{8FEA2607-D7CB-4DDF-AF3B-22C1763C6C9F}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{D6A89C33-E2ED-44A0-B307-4B17B07590AD}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{55AD8F7C-26BA-46B0-A7EE-2C222D056370}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ElasticSan", "Az.ElasticSan.csproj", "{A640567E-D134-44BD-BB83-CF06B0C8F3F9}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{A0DC2FEE-94F9-4BF5-AFD2-1C745B334859}"
17+
EndProject
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ElasticSan", "Az.ElasticSan.csproj", "{8984E6C8-C68E-4F96-909B-9357B2E12938}"
1719
EndProject
1820
Global
1921
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2022
Debug|Any CPU = Debug|Any CPU
21-
Debug|x64 = Debug|x64
22-
Debug|x86 = Debug|x86
2323
Release|Any CPU = Release|Any CPU
24-
Release|x64 = Release|x64
25-
Release|x86 = Release|x86
2624
EndGlobalSection
2725
GlobalSection(SolutionProperties) = preSolution
2826
HideSolutionNode = FALSE
2927
EndGlobalSection
3028
GlobalSection(ProjectConfigurationPlatforms) = postSolution
31-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Debug|Any CPU.Build.0 = Debug|Any CPU
33-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Debug|x64.ActiveCfg = Debug|Any CPU
34-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Debug|x64.Build.0 = Debug|Any CPU
35-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Debug|x86.ActiveCfg = Debug|Any CPU
36-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Debug|x86.Build.0 = Debug|Any CPU
37-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Release|Any CPU.ActiveCfg = Release|Any CPU
38-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Release|Any CPU.Build.0 = Release|Any CPU
39-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Release|x64.ActiveCfg = Release|Any CPU
40-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Release|x64.Build.0 = Release|Any CPU
41-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Release|x86.ActiveCfg = Release|Any CPU
42-
{8E54E7D5-0836-4A7C-8D7D-41599134A960}.Release|x86.Build.0 = Release|Any CPU
43-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Debug|Any CPU.Build.0 = Debug|Any CPU
45-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Debug|x64.ActiveCfg = Debug|Any CPU
46-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Debug|x64.Build.0 = Debug|Any CPU
47-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Debug|x86.ActiveCfg = Debug|Any CPU
48-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Debug|x86.Build.0 = Debug|Any CPU
49-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Release|Any CPU.ActiveCfg = Release|Any CPU
50-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Release|Any CPU.Build.0 = Release|Any CPU
51-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Release|x64.ActiveCfg = Release|Any CPU
52-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Release|x64.Build.0 = Release|Any CPU
53-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Release|x86.ActiveCfg = Release|Any CPU
54-
{0FE04B2B-7917-460E-8F9B-45213919E490}.Release|x86.Build.0 = Release|Any CPU
55-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
57-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Debug|x64.ActiveCfg = Debug|Any CPU
58-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Debug|x64.Build.0 = Debug|Any CPU
59-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Debug|x86.ActiveCfg = Debug|Any CPU
60-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Debug|x86.Build.0 = Debug|Any CPU
61-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
62-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Release|Any CPU.Build.0 = Release|Any CPU
63-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Release|x64.ActiveCfg = Release|Any CPU
64-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Release|x64.Build.0 = Release|Any CPU
65-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Release|x86.ActiveCfg = Release|Any CPU
66-
{C1F9C235-4E28-4248-9BD1-DE5C2DF02CFC}.Release|x86.Build.0 = Release|Any CPU
67-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Debug|Any CPU.Build.0 = Debug|Any CPU
69-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Debug|x64.ActiveCfg = Debug|Any CPU
70-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Debug|x64.Build.0 = Debug|Any CPU
71-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Debug|x86.ActiveCfg = Debug|Any CPU
72-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Debug|x86.Build.0 = Debug|Any CPU
73-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Release|Any CPU.ActiveCfg = Release|Any CPU
74-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Release|Any CPU.Build.0 = Release|Any CPU
75-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Release|x64.ActiveCfg = Release|Any CPU
76-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Release|x64.Build.0 = Release|Any CPU
77-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Release|x86.ActiveCfg = Release|Any CPU
78-
{99EB4989-7DE5-42FA-ACE1-D3403C9C5E78}.Release|x86.Build.0 = Release|Any CPU
79-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
80-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
81-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Debug|x64.ActiveCfg = Debug|Any CPU
82-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Debug|x64.Build.0 = Debug|Any CPU
83-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Debug|x86.ActiveCfg = Debug|Any CPU
84-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Debug|x86.Build.0 = Debug|Any CPU
85-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
86-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Release|Any CPU.Build.0 = Release|Any CPU
87-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Release|x64.ActiveCfg = Release|Any CPU
88-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Release|x64.Build.0 = Release|Any CPU
89-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Release|x86.ActiveCfg = Release|Any CPU
90-
{D6A89C33-E2ED-44A0-B307-4B17B07590AD}.Release|x86.Build.0 = Release|Any CPU
91-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
92-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
93-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Debug|x64.ActiveCfg = Debug|Any CPU
94-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Debug|x64.Build.0 = Debug|Any CPU
95-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Debug|x86.ActiveCfg = Debug|Any CPU
96-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Debug|x86.Build.0 = Debug|Any CPU
97-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
98-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Release|Any CPU.Build.0 = Release|Any CPU
99-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Release|x64.ActiveCfg = Release|Any CPU
100-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Release|x64.Build.0 = Release|Any CPU
101-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Release|x86.ActiveCfg = Release|Any CPU
102-
{A640567E-D134-44BD-BB83-CF06B0C8F3F9}.Release|x86.Build.0 = Release|Any CPU
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
10357
EndGlobalSection
10458
EndGlobal

src/ElasticSan/build-module.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder
123123

124124
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
125125
$modelCmdlets = @('VirtualNetworkRule')
126+
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
127+
if (Test-Path $modelCmdletFolder) {
128+
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
129+
}
126130
if ($modelCmdlets.Count -gt 0) {
127131
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
128132
CreateModelCmdlet($modelCmdlets)

src/ElasticSan/create-model-cmdlets.ps1

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ function CreateModelCmdlet {
2323
}
2424

2525
$ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
26-
$ModuleName = 'ElasticSan'
2726
$OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
2827
$null = New-Item -ItemType Directory -Force -Path $OutputDir
28+
if (''.length -gt 0) {
29+
$ModuleName = ''
30+
} else {
31+
$ModuleName = 'Az.ElasticSan'
32+
}
2933

3034
$CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
3135
$Content = ''
@@ -64,10 +68,10 @@ function CreateModelCmdlet {
6468
$ObjectType = $Model
6569
$ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
6670
# remove duplicated module name
67-
if ($ObjectType.StartsWith($ModuleName)) {
71+
if ($ObjectType.StartsWith('ElasticSan')) {
6872
$ModulePrefix = ''
6973
} else {
70-
$ModulePrefix = $ModuleName
74+
$ModulePrefix = 'ElasticSan'
7175
}
7276
$OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
7377

@@ -158,7 +162,7 @@ Create an in-memory object for ${ObjectType}.
158162
.Outputs
159163
${ObjectTypeWithNamespace}
160164
.Link
161-
https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
165+
https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
162166
#>
163167
function New-Az${ModulePrefix}${ObjectType}Object {
164168
[OutputType('${ObjectTypeWithNamespace}')]

src/ElasticSan/custom/Add-AzElasticSanVolumeGroupNetworkRule.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ To create the parameters described below, construct a hash table containing the
3838
NETWORKACLSVIRTUALNETWORKRULE <IVirtualNetworkRule[]>: The list of virtual network rules.
3939
VirtualNetworkResourceId <String>: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
4040
[Action <Action?>]: The action of virtual network rule.
41-
42-
.Link
43-
https://learn.microsoft.com/powershell/module/az.elasticsan/update-azelasticsanvolumegroup
4441
#>
4542
function Add-AzElasticSanVolumeGroupNetworkRule {
4643
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule[]])]

src/ElasticSan/custom/Remove-AzElasticSanVolumeGroupNetworkRule.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ To create the parameters described below, construct a hash table containing the
3434
NETWORKACLSVIRTUALNETWORKRULE <IVirtualNetworkRule[]>: The list of virtual network rules.
3535
VirtualNetworkResourceId <String>: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
3636
[Action <Action?>]: The action of virtual network rule.
37-
38-
.Link
39-
https://learn.microsoft.com/powershell/module/az.elasticsan/add-azelasticsanvolumegroupnetworkrule
4037
#>
4138
function Remove-AzElasticSanVolumeGroupNetworkRule {
4239
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule[]])]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Create an in-memory object for VirtualNetworkRule.
2323
.Outputs
2424
Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule
2525
.Link
26-
https://learn.microsoft.com/powershell/module/az.ElasticSan/new-AzElasticSanVirtualNetworkRuleObject
26+
https://learn.microsoft.com/powershell/module/Az.ElasticSan/new-AzElasticSanVirtualNetworkRuleObject
2727
#>
2828
function New-AzElasticSanVirtualNetworkRuleObject {
2929
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule')]

src/ElasticSan/exports/Add-AzElasticSanVolumeGroupNetworkRule.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ NETWORKACLSVIRTUALNETWORKRULE <IVirtualNetworkRule[]>: The list of virtual netwo
4343
VirtualNetworkResourceId <String>: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
4444
[Action <Action?>]: The action of virtual network rule.
4545
.Link
46-
https://learn.microsoft.com/powershell/module/az.elasticsan/update-azelasticsanvolumegroup
46+
https://learn.microsoft.com/powershell/module/az.elasticsan/add-azelasticsanvolumegroupnetworkrule
4747
#>
4848
function Add-AzElasticSanVolumeGroupNetworkRule {
4949
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.VirtualNetworkRule[]])]
@@ -158,7 +158,7 @@ begin {
158158
$parameterSet = $PSCmdlet.ParameterSetName
159159

160160
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
161-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
161+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
162162
}
163163
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
164164
if ($preTelemetryId -eq '') {

src/ElasticSan/exports/Get-AzElasticSan.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ param(
8585
[ValidateNotNull()]
8686
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Azure')]
8787
[System.Management.Automation.PSObject]
88-
# The credentials, account, tenant, and subscription used for communication with Azure.
88+
# The DefaultProfile parameter is not functional.
89+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
8990
${DefaultProfile},
9091

9192
[Parameter(DontShow)]
@@ -137,7 +138,7 @@ begin {
137138
$parameterSet = $PSCmdlet.ParameterSetName
138139

139140
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
140-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
141+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
141142
}
142143
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
143144
if ($preTelemetryId -eq '') {

src/ElasticSan/exports/Get-AzElasticSanSkuList.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ param(
4949
[ValidateNotNull()]
5050
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Azure')]
5151
[System.Management.Automation.PSObject]
52-
# The credentials, account, tenant, and subscription used for communication with Azure.
52+
# The DefaultProfile parameter is not functional.
53+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
5354
${DefaultProfile},
5455

5556
[Parameter(DontShow)]
@@ -101,7 +102,7 @@ begin {
101102
$parameterSet = $PSCmdlet.ParameterSetName
102103

103104
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
104-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
105+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
105106
}
106107
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
107108
if ($preTelemetryId -eq '') {

0 commit comments

Comments
 (0)