Skip to content

Commit ca71610

Browse files
Migrate ElasticSan from generation to main (#22954)
* Move ElasticSan to main * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent f21f2a2 commit ca71610

File tree

471 files changed

+43265
-18295
lines changed

Some content is hidden

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

471 files changed

+43265
-18295
lines changed

src/ElasticSan/Az.ElasticSan.format.ps1xml

Lines changed: 352 additions & 230 deletions
Large diffs are not rendered by default.

src/ElasticSan/Az.ElasticSan.psd1

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 26/07/2023
6+
# Generated on: 10/12/2023
77
#
88

99
@{
@@ -71,12 +71,13 @@ FormatsToProcess = './Az.ElasticSan.format.ps1xml'
7171
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
7272
FunctionsToExport = 'Add-AzElasticSanVolumeGroupNetworkRule', 'Get-AzElasticSan',
7373
'Get-AzElasticSanSkuList', 'Get-AzElasticSanVolume',
74-
'Get-AzElasticSanVolumeGroup', 'New-AzElasticSan',
75-
'New-AzElasticSanVirtualNetworkRuleObject',
74+
'Get-AzElasticSanVolumeGroup', 'Get-AzElasticSanVolumeSnapshot',
75+
'New-AzElasticSan', 'New-AzElasticSanVirtualNetworkRuleObject',
7676
'New-AzElasticSanVolume', 'New-AzElasticSanVolumeGroup',
77-
'Remove-AzElasticSan', 'Remove-AzElasticSanVolume',
78-
'Remove-AzElasticSanVolumeGroup',
79-
'Remove-AzElasticSanVolumeGroupNetworkRule', 'Update-AzElasticSan',
77+
'New-AzElasticSanVolumeSnapshot', 'Remove-AzElasticSan',
78+
'Remove-AzElasticSanVolume', 'Remove-AzElasticSanVolumeGroup',
79+
'Remove-AzElasticSanVolumeGroupNetworkRule',
80+
'Remove-AzElasticSanVolumeSnapshot', 'Update-AzElasticSan',
8081
'Update-AzElasticSanVolume', 'Update-AzElasticSanVolumeGroup'
8182

8283
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
@@ -86,7 +87,7 @@ CmdletsToExport = @()
8687
# VariablesToExport = @()
8788

8889
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
89-
AliasesToExport = '*'
90+
AliasesToExport = @()
9091

9192
# DSC resources to export from this module
9293
# DscResourcesToExport = @()
@@ -115,7 +116,7 @@ PrivateData = @{
115116
# IconUri = ''
116117

117118
# ReleaseNotes of this module
118-
ReleaseNotes = '* Added support for private endpoint for ElasticSan'
119+
# ReleaseNotes = ''
119120

120121
# Prerelease string of this module
121122
# Prerelease = ''

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 CMK and volume snapshots
2122

2223
## Version 0.1.1
2324
* Added support for private endpoint for 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", "{D9281535-33F3-4DB6-9C15-6D20E82FC82B}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{005EC0F6-C666-43F9-8CCA-E84FAD02F813}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{98B97666-8B15-4AB3-B904-9F01C6890B91}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{A13295FA-FE58-42B6-B5B5-507056BDE232}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{99E1574B-3D71-4AFD-96C5-7C25328B3C9C}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{BB004693-CDA8-44FA-B533-43CF5F6FBB07}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{31B5F39B-324D-4EFA-B13B-E14120A09E1E}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{8A8847DF-CF9A-4D3E-AE45-A09B7D093D3B}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{C8428874-ED37-43F1-B29E-505BE4BE85F9}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{B2F80B4A-9581-4673-B2BA-FEB870F34971}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{F4136554-A010-4B65-B70B-3EA3B16EBD5C}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{C5BDFB7E-1CC2-4717-AF02-AAD60907A833}"
1717
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ElasticSan", "Az.ElasticSan.csproj", "{3D73E649-4F06-47DB-95ED-C636FC14A47F}"
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ElasticSan", "Az.ElasticSan.csproj", "{FC9A37BA-884A-4843-BAB5-7A21B95A56EB}"
1919
EndProject
2020
Global
2121
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,33 +26,33 @@ Global
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29-
{D9281535-33F3-4DB6-9C15-6D20E82FC82B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{D9281535-33F3-4DB6-9C15-6D20E82FC82B}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{D9281535-33F3-4DB6-9C15-6D20E82FC82B}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{D9281535-33F3-4DB6-9C15-6D20E82FC82B}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{98B97666-8B15-4AB3-B904-9F01C6890B91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{98B97666-8B15-4AB3-B904-9F01C6890B91}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{98B97666-8B15-4AB3-B904-9F01C6890B91}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{98B97666-8B15-4AB3-B904-9F01C6890B91}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{99E1574B-3D71-4AFD-96C5-7C25328B3C9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{99E1574B-3D71-4AFD-96C5-7C25328B3C9C}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{99E1574B-3D71-4AFD-96C5-7C25328B3C9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{99E1574B-3D71-4AFD-96C5-7C25328B3C9C}.Release|Any CPU.Build.0 = Release|Any CPU
41-
{31B5F39B-324D-4EFA-B13B-E14120A09E1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42-
{31B5F39B-324D-4EFA-B13B-E14120A09E1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
43-
{31B5F39B-324D-4EFA-B13B-E14120A09E1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
44-
{31B5F39B-324D-4EFA-B13B-E14120A09E1E}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{C8428874-ED37-43F1-B29E-505BE4BE85F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46-
{C8428874-ED37-43F1-B29E-505BE4BE85F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
47-
{C8428874-ED37-43F1-B29E-505BE4BE85F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
48-
{C8428874-ED37-43F1-B29E-505BE4BE85F9}.Release|Any CPU.Build.0 = Release|Any CPU
49-
{F4136554-A010-4B65-B70B-3EA3B16EBD5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50-
{F4136554-A010-4B65-B70B-3EA3B16EBD5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
51-
{F4136554-A010-4B65-B70B-3EA3B16EBD5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{F4136554-A010-4B65-B70B-3EA3B16EBD5C}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{3D73E649-4F06-47DB-95ED-C636FC14A47F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54-
{3D73E649-4F06-47DB-95ED-C636FC14A47F}.Debug|Any CPU.Build.0 = Debug|Any CPU
55-
{3D73E649-4F06-47DB-95ED-C636FC14A47F}.Release|Any CPU.ActiveCfg = Release|Any CPU
56-
{3D73E649-4F06-47DB-95ED-C636FC14A47F}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{005EC0F6-C666-43F9-8CCA-E84FAD02F813}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{005EC0F6-C666-43F9-8CCA-E84FAD02F813}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{005EC0F6-C666-43F9-8CCA-E84FAD02F813}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{005EC0F6-C666-43F9-8CCA-E84FAD02F813}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{A13295FA-FE58-42B6-B5B5-507056BDE232}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{A13295FA-FE58-42B6-B5B5-507056BDE232}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{A13295FA-FE58-42B6-B5B5-507056BDE232}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{A13295FA-FE58-42B6-B5B5-507056BDE232}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{BB004693-CDA8-44FA-B533-43CF5F6FBB07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{BB004693-CDA8-44FA-B533-43CF5F6FBB07}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{BB004693-CDA8-44FA-B533-43CF5F6FBB07}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{BB004693-CDA8-44FA-B533-43CF5F6FBB07}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{8A8847DF-CF9A-4D3E-AE45-A09B7D093D3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{8A8847DF-CF9A-4D3E-AE45-A09B7D093D3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{8A8847DF-CF9A-4D3E-AE45-A09B7D093D3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{8A8847DF-CF9A-4D3E-AE45-A09B7D093D3B}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{B2F80B4A-9581-4673-B2BA-FEB870F34971}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{B2F80B4A-9581-4673-B2BA-FEB870F34971}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{B2F80B4A-9581-4673-B2BA-FEB870F34971}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{B2F80B4A-9581-4673-B2BA-FEB870F34971}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{C5BDFB7E-1CC2-4717-AF02-AAD60907A833}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{C5BDFB7E-1CC2-4717-AF02-AAD60907A833}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{C5BDFB7E-1CC2-4717-AF02-AAD60907A833}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{C5BDFB7E-1CC2-4717-AF02-AAD60907A833}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{FC9A37BA-884A-4843-BAB5-7A21B95A56EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{FC9A37BA-884A-4843-BAB5-7A21B95A56EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{FC9A37BA-884A-4843-BAB5-7A21B95A56EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{FC9A37BA-884A-4843-BAB5-7A21B95A56EB}.Release|Any CPU.Build.0 = Release|Any CPU
5757
EndGlobalSection
5858
EndGlobal

src/ElasticSan/README.md

Lines changed: 57 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,35 @@ 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: 3794130ff888bf159dc93dd8d673415863df0cd6
34+
branch: 9770615578c920dad8cb6fce33d79c7e112824c0
3535
require:
3636
- $(this-folder)/../readme.azure.noprofile.md
3737
input-file:
38-
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2022-12-01-preview/elasticsan.json
38+
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/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.2.0
43+
module-version: 0.3.0
4444
subject-prefix: $(service-name)
4545

46+
use-extension:
47+
"@autorest/powershell": "4.x"
48+
enable-parent-pipeline-input: true
49+
4650
# If there are post APIs for some kinds of actions in the RP, you may need to
4751
# uncomment following line to support viaIdentity for these post APIs
4852
# identity-correction-for-post: true
4953

5054
directive:
55+
- where:
56+
variant: ^(Create|Update)(?!.*?Expanded)
57+
remove: true
5158
- model-cmdlet:
52-
- VirtualNetworkRule
59+
- model-name: VirtualNetworkRule
60+
cmdlet-name: New-AzElasticSanVirtualNetworkRuleObject
5361
- where:
54-
model-name: ElasticSan|Volume|VolumeGroup
62+
model-name: ElasticSan|Volume|VolumeGroup|Snapshot
5563
set:
5664
suppress-format: true
5765
# Set alias for Name paramaters
@@ -70,6 +78,18 @@ directive:
7078
parameter-name: Name
7179
set:
7280
alias: VolumeName
81+
- where:
82+
parameter-name: ^XmsDeleteSnapshot$
83+
set:
84+
parameter-name: DeleteSnapshot
85+
- where:
86+
parameter-name: ^XmsForceDelete$
87+
set:
88+
parameter-name: ForceDelete
89+
- where:
90+
parameter-name: SnapshotName
91+
set:
92+
parameter-name: Name
7393
- where:
7494
property-name: TotalIop
7595
set:
@@ -88,6 +108,26 @@ directive:
88108
parameter-name: GroupName
89109
set:
90110
parameter-name: VolumeGroupName
111+
- where:
112+
subject: VolumeSnapshot
113+
verb: Update
114+
remove: true
115+
- where:
116+
parameter-name: EncryptionIdentityEncryptionUserAssignedIdentity
117+
set:
118+
parameter-name: EncryptionUserAssignedIdentity
119+
- where:
120+
parameter-name: KeyVaultPropertyKeyName
121+
set:
122+
parameter-name: KeyName
123+
- where:
124+
parameter-name: KeyVaultPropertyKeyVaultUri
125+
set:
126+
parameter-name: KeyVaultUri
127+
- where:
128+
parameter-name: KeyVaultPropertyKeyVersion
129+
set:
130+
parameter-name: KeyVersion
91131
# Change the description of cmdlets that correspond to multiple APIs
92132
- from: swagger-document
93133
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}"].get
@@ -101,4 +141,16 @@ directive:
101141
- where:
102142
subject: ^PrivateEndpointConnection$|^PrivateLinkResource$
103143
hide: true
144+
- where:
145+
verb: ^New$|^Update$
146+
subject: ^VolumeGroup$
147+
hide: true
148+
- where:
149+
verb: New
150+
subject: Volume
151+
parameter-name: ManagedByResourceId
152+
hide: true
153+
- from: IdentityUserAssignedIdentities.dictionary.cs
154+
where: $
155+
transform: $ = $.replace('null != property.Key && null != property.Value', 'null != property.Key');
104156
```

src/ElasticSan/build-module.ps1

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
15+
param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX)
1616
$ErrorActionPreference = 'Stop'
1717

1818
if($PSEdition -ne 'Core') {
1919
Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
2020
}
2121

22-
if(-not $Isolated -and -not $Debugger) {
22+
if(-not $NotIsolated -and -not $Debugger) {
2323
Write-Host -ForegroundColor Green 'Creating isolated process...'
2424
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
25-
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
25+
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2626

2727
if($LastExitCode -ne 0) {
2828
# Build failed. Don't attempt to run the module.
@@ -45,6 +45,14 @@ if(-not $Isolated -and -not $Debugger) {
4545
}
4646
}
4747

48+
if($UX) {
49+
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
50+
if($LastExitCode -ne 0) {
51+
# UX generation failed. Don't attempt to run the module.
52+
return
53+
}
54+
}
55+
4856
if($Pack) {
4957
. (Join-Path $PSScriptRoot 'pack-module.ps1')
5058
if($LastExitCode -ne 0) {
@@ -122,7 +130,7 @@ $examplesFolder = Join-Path $PSScriptRoot 'examples'
122130
$null = New-Item -ItemType Directory -Force -Path $examplesFolder
123131

124132
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
125-
$modelCmdlets = @('VirtualNetworkRule')
133+
$modelCmdlets = @(@{modelName="VirtualNetworkRule"; cmdletName="New-AzElasticSanVirtualNetworkRuleObject"})
126134
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
127135
if (Test-Path $modelCmdletFolder) {
128136
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
@@ -143,7 +151,8 @@ if($NoDocs) {
143151
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
144152
}
145153
$null = New-Item -ItemType Directory -Force -Path $docsFolder
146-
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
154+
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
155+
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
147156
}
148157

149158
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'

src/ElasticSan/check-dependencies.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
15+
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
1616
$ErrorActionPreference = 'Stop'
1717

18-
if(-not $Isolated) {
18+
if(-not $NotIsolated) {
1919
Write-Host -ForegroundColor Green 'Creating isolated process...'
2020
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
21-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
21+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2222
return
2323
}
2424

0 commit comments

Comments
 (0)