Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ARM] az stack: Add new commands for deployment stacks #24211

Merged
merged 204 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
d1cf5a1
Added DeploymentStacks management types
Aug 26, 2021
b394efe
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Aug 30, 2021
3041a1e
Added CliCommandType for DeploymentStacks
Aug 30, 2021
627da8c
Merge branch 'stacks_August2021' of https://github.com/harshpatel17/a…
Aug 30, 2021
1dbd84f
Added sub show command
Aug 30, 2021
304d619
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Aug 31, 2021
4b527aa
Finished show and list commands for rg and sub scopes
Aug 31, 2021
ccd4037
Added delete commands for sub and rg scopes
Aug 31, 2021
cc7099d
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 1, 2021
82267c1
Finished all snapshot commands
Sep 1, 2021
c3d9e93
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 2, 2021
0b8aaee
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 3, 2021
bdd97e4
Started sub-create, needs finishing
Sep 3, 2021
efe3899
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 7, 2021
29bc9e9
Made progress on sub create
Sep 8, 2021
09d29b1
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 8, 2021
5fbc1b2
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 11, 2021
e1b5c49
Finished sub-create implementation, needs further testing
Sep 11, 2021
bc5a730
Finished group-create, needs testing
Sep 13, 2021
24faa82
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 13, 2021
059a0d3
Sub-create additions
Sep 14, 2021
6a463f8
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 14, 2021
16b6d71
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 15, 2021
98152e5
Fixed grouping
Sep 16, 2021
c1ed4d9
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 16, 2021
0a863e9
Added deployment scope functionality
Sep 20, 2021
5be6573
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 20, 2021
802ce48
Started integration testing, finished sub show
Sep 20, 2021
b95822c
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 22, 2021
3367f24
More integration test changes
Sep 22, 2021
4a1886b
Finished 3/4 rg integration tests and some formatting corrections
Sep 22, 2021
5d2a63e
Finished more integration testing
Sep 23, 2021
d74a930
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 23, 2021
2e39d0f
Finished list sub
Sep 27, 2021
0e0582d
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 27, 2021
a490b2d
Finished writing all ITs but need to test, get & creates are currentl…
Sep 30, 2021
81d5f15
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Sep 30, 2021
0d6a092
All IT passed except for ss sub delete and sub create
Oct 1, 2021
f2b76ec
Added bicep file functionality
Oct 4, 2021
b8e7249
Minor changes to location in test
Oct 8, 2021
d1fe91b
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Oct 8, 2021
0117e41
Fixed template spec tests for subscription create
Oct 20, 2021
7a8036d
Keeping fork update, resolved merge conflicts
Oct 20, 2021
5ea2d8d
Fixed dependency versioning errors
Oct 21, 2021
478703a
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Oct 21, 2021
bde34f1
Deleted unnecessary code
Oct 25, 2021
1742ec4
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Oct 25, 2021
1866a78
Updated requirements
Oct 25, 2021
c0e9bee
Finished stacks help
Oct 28, 2021
dd4499d
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Nov 1, 2021
1dd3792
Added validator implementation
Nov 1, 2021
00e7041
Fixed missing help cases and added verbose delete responses
Nov 3, 2021
98019bd
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Nov 3, 2021
23cfe66
Used proper error handling functions
Nov 3, 2021
f71ec79
Merge branch 'stacks_August2021' of https://github.com/harshpatel17/a…
Nov 3, 2021
82ba3ee
Update src/azure-cli/azure/cli/command_modules/resource/_help.py
harshpatel17 Nov 4, 2021
dfe649f
Update src/azure-cli/azure/cli/command_modules/resource/_help.py
harshpatel17 Nov 4, 2021
e89b16d
Update src/azure-cli/azure/cli/command_modules/resource/_help.py
harshpatel17 Nov 4, 2021
4c18c77
Update src/azure-cli/azure/cli/command_modules/resource/_help.py
harshpatel17 Nov 4, 2021
817f555
Used correct error type and updated package version
Nov 4, 2021
6240873
Merge branch 'stacks_August2021' of https://github.com/harshpatel17/a…
Nov 4, 2021
7865d8f
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Nov 4, 2021
462e6f5
help.py changes
Nov 5, 2021
44d45c1
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Nov 5, 2021
760a522
Used appropriate logging function
Nov 15, 2021
be56960
Added argument context
Nov 15, 2021
0d9d785
Merge branch 'dev' into stacks_August2021
harshpatel17 Nov 15, 2021
050d35b
Changes from Tarun's review
Nov 18, 2021
06f235c
Cleaned up formatting for --output table
Nov 19, 2021
14c5f4e
Finished Feedback 2, standardized parameter names + fixed deployment …
Nov 23, 2021
0348828
-h threw errors and fixed output table bug
Nov 24, 2021
52c8bb4
Changed command names from stacks to stack | Test Suite Passed | Veri…
Nov 29, 2021
629f59b
Changed commands to follow the name & id format [tested]
harshpatel17 Dec 8, 2021
c2040ff
Added Bicep sub functionality [tested]
harshpatel17 Dec 8, 2021
105184e
Added bicep test file
harshpatel17 Dec 15, 2021
073abbd
Adding Recordings
harshpatel17 Dec 15, 2021
fa4ce89
Merged from dev [tested]
harshpatel17 Dec 15, 2021
a47f01f
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Dec 15, 2021
350a043
Handled index out of bounds [tested]
harshpatel17 Dec 21, 2021
7284f4e
Merge branch 'stacks_August2021' of https://github.com/harshpatel17/a…
harshpatel17 Dec 21, 2021
da14e28
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Jan 5, 2022
975fd9d
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Jan 11, 2022
40b86e8
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Jan 14, 2022
004695d
Added flag for versioning
harshpatel17 Jan 14, 2022
4ac2305
Merge branch 'stacks_August2021' of https://github.com/harshpatel17/a…
harshpatel17 Jan 14, 2022
a492bc5
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Jan 19, 2022
f883ed2
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Jan 20, 2022
3905d80
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Jan 21, 2022
833ff69
Fixed some errors that Brian found
harshpatel17 Jan 21, 2022
2c9a163
Added versioning
harshpatel17 Jan 21, 2022
9a9b745
Only template type can be inputted [tested]
harshpatel17 Jan 21, 2022
1ab238c
Version update [tested]
harshpatel17 Jan 21, 2022
cc84b05
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Jan 25, 2022
d1dfe16
Version 1.0.0 for private preview, added 1.0.0 tag [tested]
harshpatel17 Jan 28, 2022
4f49b2b
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Jan 31, 2022
7a525ce
Fixed some bugs and ready for first release, 0.1.4 [tested]
harshpatel17 Jan 31, 2022
437808e
Merged with dev
harshpatel17 Apr 11, 2022
a843a03
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Apr 27, 2022
ff2a4a2
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 Apr 29, 2022
abccb79
Merge branch 'Azure:dev' into stacks_August2021
harshpatel17 May 4, 2022
73c0bea
Caught up with DEV
Aug 15, 2022
9820bcf
Added switches for actionOnUnmanage (removed updateBehavior), removed…
Aug 22, 2022
4ec32b6
Merge branch 'Azure:dev' into DeploymentStack2022-08
harshpatel17 Aug 31, 2022
53c41f8
Strings to switchs: deleteResources/RG/All
Aug 31, 2022
5bc1ebc
Added mg functionality, still need to add mg delete [not tested]
Sep 14, 2022
cdea4b2
Merge branch 'Azure:dev' into DeploymentStack2022-08
harshpatel17 Sep 14, 2022
216bf7d
Added testing for sub - delete--resources
Sep 21, 2022
f7a8c56
Added integration tests for RG & SUB delete flags [tested]
Sep 30, 2022
f78face
Working on mg integration tests
Oct 5, 2022
de6c6c0
Added cosmetics and finished rough integration testing [tested]
Oct 5, 2022
d2004a6
Added windows.txt
Oct 6, 2022
f9e708b
added linux and darwin files to pass tests
Oct 6, 2022
832a992
Changed Version number to 1.1
Oct 6, 2022
fbc2b8c
Added the following features: table output and deny Settings
Oct 13, 2022
54ca531
merged with dev
Oct 14, 2022
07f7fc1
Updated version to 1.2
Oct 14, 2022
88af832
Added applyToChildScopes - service not working
Oct 19, 2022
1a23312
Removed a_c_scopes from model (not supported in service yet)
Oct 20, 2022
5cc3666
Version 1.3 - delete only has one prompt with specified resources to …
Oct 21, 2022
8503f21
1.3 ready for bug bash
Oct 21, 2022
5b0be53
Version 1.4 - Deny Settings help edit
Nov 4, 2022
ae09261
nit
Nov 4, 2022
abb84a2
Export template output fix (1.5)
Nov 14, 2022
7c44bc1
1.6 - applyToChildScopes added & confirmation for deny settings added
Nov 14, 2022
c11b507
Tested & Passed All ITs for RG & Sub scope, not for MG scope
Nov 21, 2022
5b618b0
Removed data plan & minor changes
Dec 27, 2022
8f89b88
time changes regarding output table
Jan 4, 2023
744d662
Version 1.6, all tested
Jan 9, 2023
6ed18ba
Version 1.6, all tested with test yaml files
Jan 9, 2023
3c87e6f
Removed update-behavior from help, 1.8
Jan 11, 2023
290c5f4
Added update
Jan 12, 2023
75f132c
1.9: tag support, removed word purge from help, and character c from …
Jan 25, 2023
931a34d
Merge branch 'Azure:dev' into DeploymentStack2022-08
harshpatel17 Jan 25, 2023
b252571
19 intermim build, tested, more changes
Feb 2, 2023
6f18fc2
retrigger checks
Mar 15, 2023
9e8a7e7
PR requested changes
Mar 15, 2023
60e012f
Merge branch 'dev' into DeploymentStack2022-08
harshpatel17 Mar 15, 2023
91f1827
Fixed output table errors
Mar 15, 2023
a66508f
Addressed rest of yanzudds comments
Mar 15, 2023
ba28f62
Merged with origin/dev
Mar 21, 2023
a0d3369
Continued merge
Mar 21, 2023
eb42780
Merge branch 'Azure:dev' into DeploymentStack2022-08
harshpatel17 Mar 22, 2023
4ad4a54
Bicep error fix
Mar 23, 2023
bd6f921
Added requested changes in help file
Mar 27, 2023
52949b5
Missed commit
Mar 28, 2023
fe108c9
Merge branch 'dev' into DeploymentStack2022-08
Mar 31, 2023
270dfab
[Network] `az network nic update`: Add `--ip-configurations` to suppo…
necusjz Apr 3, 2023
936a841
Merge branch 'dev' into DeploymentStack2022-08
Apr 3, 2023
91a3cdf
Caught up with dev & manually bumped resource version & removed reser…
Apr 3, 2023
da43682
Removed optional text from param.py & remove snapshot references
Apr 3, 2023
918373a
Addresses comments + denySettings are now required + fixed shared error
Apr 7, 2023
c583d27
retrigger checks
Apr 10, 2023
db79d45
removed reservations and bumped resources version to 22
Apr 11, 2023
c7830f2
Merge branch 'dev' into DeploymentStack2022-08
Apr 12, 2023
6097100
Added bicep param support & reverted yes confirmation [tested]
Apr 17, 2023
752aa9e
retrigger checks
May 4, 2023
2123dc2
Addressed location in params.py comments
May 10, 2023
05f985c
Ran style (most fixed), linter is running into error about managedapp
harshpatel17 May 11, 2023
5eb0c6c
Caught up with upstream dev, linter MA issue not fixed
harshpatel17 May 11, 2023
4f9f786
Missed commit
harshpatel17 May 11, 2023
b51f816
Resolved comments regarding service_name and some of the style issues
harshpatel17 May 16, 2023
d69449b
Merge branch 'dev' into DeploymentStack2022-08
harshpatel17 May 16, 2023
9e909ef
Merge branch 'dev' into DeploymentStack2022-08
harshpatel17 Jun 1, 2023
43546df
Added excludedActions & queryString & style fixes [Not IT Tested]
harshpatel17 Jun 1, 2023
095b68e
retrigger checks
harshpatel17 Jun 1, 2023
cbece2a
Added queryString to params.py
harshpatel17 Jun 2, 2023
9147e62
Merge branch 'dev' into DeploymentStack2022-08
harshpatel17 Jun 2, 2023
72f204c
Modularize PUTs
harshpatel17 Jun 2, 2023
f1172d3
Merge branch 'dev' into DeploymentStack2022-08
harshpatel17 Jun 5, 2023
7160df6
Abbreviations & other minor fixes [PUT ITs tested]
harshpatel17 Jun 6, 2023
b3e3a32
retrigger checks
harshpatel17 Jun 6, 2023
5f4ee77
Removed extra pass statements, removed extra functions, bypassed id p…
harshpatel17 Jun 7, 2023
825adc0
Merge branch 'dev' into DeploymentStack2022-08
harshpatel17 Jun 7, 2023
7a19141
Added temp service_name link [need to update]
harshpatel17 Jun 7, 2023
ae29762
Merge branch 'DeploymentStack2022-08' of https://github.com/harshpate…
harshpatel17 Jun 7, 2023
548a7de
Edited help file
harshpatel17 Jun 12, 2023
f7f28dc
Added stacks link and changed abbreviations
harshpatel17 Jun 13, 2023
2d1d613
Merge branch 'dev' into DeploymentStack2022-08
harshpatel17 Jun 16, 2023
d385130
Removed unnecessary formatting
harshpatel17 Jun 16, 2023
32f70f3
added requested changes
harshpatel17 Jun 16, 2023
5107973
fixed link
harshpatel17 Jun 16, 2023
24edfa0
Added requested changes
harshpatel17 Jun 19, 2023
312593d
retrigger checks
harshpatel17 Jun 19, 2023
85b7e29
removed enumeration change, add back later
harshpatel17 Jun 20, 2023
50c02d5
retrigger checks
harshpatel17 Jun 20, 2023
3916c39
removed unnecessary comments
harshpatel17 Jun 21, 2023
401d6f7
Added ExemptionCategory import to get through error & updated setup.p…
harshpatel17 Jun 21, 2023
96b0e8a
Also pointed Darwin and Linux to point to new SDK
harshpatel17 Jun 21, 2023
7794e91
Fixed bicep test file broken path
harshpatel17 Jun 21, 2023
05280ae
Removed exception category to see if CI builds pass
harshpatel17 Jun 21, 2023
48cfa1b
Added DenySettingsMode, removed extra build confirmation string, adde…
harshpatel17 Jun 22, 2023
98be4bf
Nit & removed extra unneeded functions
harshpatel17 Jun 22, 2023
582920a
Merge branch 'dev' into DeploymentStack2022-08
harshpatel17 Jun 22, 2023
877d753
Added back ExemptionCategory
harshpatel17 Jun 26, 2023
4dba574
ExemptionCategory added as manual enum, removed import + bicep path f…
harshpatel17 Jun 26, 2023
f9f5a48
Attempt to fix cassette errors
harshpatel17 Jun 26, 2023
a6ca221
removed az in az group & reran live tests
harshpatel17 Jun 27, 2023
4065524
uprade bicep cli change
harshpatel17 Jun 27, 2023
02cbdef
Removed f string
harshpatel17 Jun 27, 2023
4bb4da9
Added new bicep test functions
harshpatel17 Jun 27, 2023
774a427
retrigger checks
harshpatel17 Jun 27, 2023
70b792d
added waiver to enum
harshpatel17 Jun 27, 2023
6c329a1
Nit in help file
harshpatel17 Jun 28, 2023
d7e12e4
Add compatible logic for Policy SDK breaking change
zhoxing-ms Jun 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/azure-cli-core/azure/cli/core/profiles/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods
MGMT_RESOURCE_SUBSCRIPTIONS = ('azure.mgmt.resource.subscriptions', 'SubscriptionClient')
MGMT_RESOURCE_DEPLOYMENTSCRIPTS = ('azure.mgmt.resource.deploymentscripts', 'DeploymentScriptsClient')
MGMT_RESOURCE_TEMPLATESPECS = ('azure.mgmt.resource.templatespecs', 'TemplateSpecsClient')
MGMT_RESOURCE_DEPLOYMENTSTACKS = ('azure.mgmt.resource.deploymentstacks', 'DeploymentStacksClient')
MGMT_RESOURCE_PRIVATELINKS = ('azure.mgmt.resource.privatelinks', 'ResourcePrivateLinkClient')
MGMT_RESOURCE_MANAGEDAPPLICATIONS = ('azure.mgmt.resource.managedapplications', 'ApplicationClient')
MGMT_MONITOR = ('azure.mgmt.monitor', 'MonitorManagementClient')
Expand Down Expand Up @@ -175,11 +176,14 @@ def default_api_version(self):
ResourceType.MGMT_RESOURCE_FEATURES: '2021-07-01',
ResourceType.MGMT_RESOURCE_LINKS: '2016-09-01',
ResourceType.MGMT_RESOURCE_LOCKS: '2016-09-01',
ResourceType.MGMT_RESOURCE_POLICY: '2021-06-01',
ResourceType.MGMT_RESOURCE_POLICY: SDKProfile('2021-06-01', {
'policy_exemptions': '2020-07-01-preview'
}),
ResourceType.MGMT_RESOURCE_RESOURCES: '2022-09-01',
ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: '2019-11-01',
ResourceType.MGMT_RESOURCE_DEPLOYMENTSCRIPTS: '2020-10-01',
ResourceType.MGMT_RESOURCE_TEMPLATESPECS: '2021-05-01',
ResourceType.MGMT_RESOURCE_DEPLOYMENTSTACKS: '2022-08-01-preview',
ResourceType.MGMT_RESOURCE_PRIVATELINKS: '2020-05-01',
ResourceType.MGMT_RESOURCE_MANAGEDAPPLICATIONS: '2019-07-01',
ResourceType.MGMT_NETWORK_DNS: '2018-05-01',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ def _resource_templatespecs_client_factory(cli_ctx, **_):
return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_TEMPLATESPECS)


def _resource_deploymentstacks_client_factory(cli_ctx, **_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.profiles import ResourceType
return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_DEPLOYMENTSTACKS)


def _resource_privatelinks_client_factory(cli_ctx, **_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.profiles import ResourceType
Expand Down Expand Up @@ -158,6 +164,10 @@ def cf_resource_templatespecs(cli_ctx, _):
return _resource_templatespecs_client_factory(cli_ctx).template_specs


def cf_resource_deploymentstacks(cli_ctx, _):
return _resource_deploymentstacks_client_factory(cli_ctx).deployment_stacks


def cf_resource_privatelinkassociations(cli_ctx, _):
return _resource_privatelinks_client_factory(cli_ctx).private_link_association

Expand Down
207 changes: 207 additions & 0 deletions src/azure-cli/azure/cli/command_modules/resource/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -2840,6 +2840,213 @@
short-summary: List out all available versions of Bicep CLI.
"""

helps['stack'] = """
type: group
short-summary: A deployment stack is a native Azure resource type that enables you to perform operations on a resource collection as an atomic unit.
long-summary: Deployment stacks are defined in ARM as the type Microsoft.Resources/deploymentStacks.
"""

helps['stack mg'] = """
type: group
short-summary: Manage Deployment Stacks at management group.
"""

helps['stack mg create'] = """
type: command
short-summary: Create or update a deployment stack at management group scope
examples:
- name: Create a deployment stack using template file.
text: az stack mg create --name StackName --management-group-id myMg --template-file simpleTemplate.json --location westus2 --description description --deny-settings-mode None
- name: Create a deployment stack with parameter file and delete resources.
text: az stack mg create --name StackName --management-group-id myMg --delete-resources --template-file simpleTemplate.json --parameters simpleTemplateParams.json --location westus2 --description description --deny-settings-mode None
- name: Create a deployment stack with template spec and delete resource groups
text: az stack mg create --name StackName --management-group-id myMg --delete-resource-groups --template-spec TemplateSpecResourceIDWithVersion --location westus2 --description description --deny-settings-mode None
- name: Create a deployment stack using bicep file and delete all resources.
text: az stack mg create --name StackName --management-group-id myMg --delete-all --template-file simple.bicep --location westus2 --description description --deny-settings-mode None
- name: Create a deployment stack using parameters from key/value pairs
text: az stack mg create --name StackName --management-group-id myMg --template-file simpleTemplate.json --location westus --description description --parameters simpleTemplateParams.json value1=foo value2=bar --deny-settings-mode None
- name: Create a deployment stack from a local template, using a parameter file, a remote parameter file, and selectively overriding key/value pairs.
text: az stack mg create --name StackName --management-group-id myMg --template-file azuredeploy.json --parameters @params.json --parameters https://mysite/params.json --parameters MyValue=This MyArray=@array.json --location westus --deny-settings-mode None
- name: Create a deployment stack from a local template, using deny settings.
text: az stack mg create --name StackName --management-group-id myMg --template-file azuredeploy.json --deny-settings-mode denyDelete --deny-settings-excluded-actions Microsoft.Compute/virtualMachines/write --deny-settings-excluded-principals "test1 test2" --location westus --deny-settings-mode None
- name: Create a deployment stack from a local template, apply deny settings to child scope.
text: az stack mg create --name StackName --management-group-id myMg --template-file azuredeploy.json --deny-settings-mode denyDelete --deny-settings-excluded-actions Microsoft.Compute/virtualMachines/write --deny-settings-apply-to-child-scopes --location westus
"""

helps['stack mg list'] = """
type: command
short-summary: List all deployment stacks in management group
examples:
- name: List all stacks
text: az stack mg list --management-group-id myMg
"""

helps['stack mg show'] = """
type: command
short-summary: Get specified deployment stack from management group scope
examples:
- name: Get stack by name.
text: az stack mg show --name StackName --management-group-id myMg
- name: Get stack by stack resource id.
text: az stack mg show --id /providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deploymentStacks/StackName --management-group-id myMg
"""

helps['stack mg export'] = """
type: command
short-summary: Export the template used to create the deployment stack
examples:
- name: Export template by name.
text: az stack mg export --name StackName --management-group-id myMg
- name: Export template by stack resource id.
text: az stack mg export --id /providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deploymentStacks/StackName --management-group-id myMg
"""

helps['stack mg delete'] = """
type: command
short-summary: Delete specified deployment stack from management group scope
examples:
- name: Delete stack by name.
text: az stack mg delete --name StackName --management-group-id myMg
- name: Delete stack by stack resource id.
text: az stack mg delete --id /providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deploymentStacks/StackName --management-group-id myMg
"""

helps['stack sub'] = """
type: group
short-summary: Manage Deployment Stacks at subscription.
"""

helps['stack sub create'] = """
type: command
short-summary: Create or update a deployment stack at subscription scope
examples:
- name: Create a deployment stack using template file.
text: az stack sub create --name StackName --template-file simpleTemplate.json --location westus2 --description description --deny-settings-mode None
- name: Create a deployment stack with parameter file and delete resources.
text: az stack sub create --name StackName --delete-resources --template-file simpleTemplate.json --parameters simpleTemplateParams.json --location westus2 --description description --deny-settings-mode None
- name: Create a deployment stack with template spec and delete resource groups
text: az stack sub create --name StackName --delete-resource-groups --template-spec TemplateSpecResourceIDWithVersion --location westus2 --description description --deny-settings-mode None
- name: Create a deployment stack using bicep file and delete all resources.
text: az stack sub create --name StackName --delete-all --template-file simple.bicep --location westus2 --description description --deny-settings-mode None
- name: Create a deployment stack at a different subscription.
text: az stack sub create --name StackName --template-file simpleTemplate.json --location westus2 --description description --subscription subscriptionId --deny-settings-mode None
- name: Create a deployment stack and deploy at the resource group scope.
text: az stack sub create --name StackName --template-file simpleTemplate.json --location westus --deployment-resource-group ResourceGroup --description description --deny-settings-mode None
- name: Create a deployment stack using parameters from key/value pairs
text: az stack sub create --name StackName --template-file simpleTemplate.json --location westus --description description --parameters simpleTemplateParams.json value1=foo value2=bar --deny-settings-mode None
- name: Create a deployment stack from a local template, using a parameter file, a remote parameter file, and selectively overriding key/value pairs.
text: az stack sub create --name StackName --template-file azuredeploy.json --parameters @params.json --parameters https://mysite/params.json --parameters MyValue=This MyArray=@array.json --location westus --deny-settings-mode None
- name: Create a deployment stack from a local template, using deny settings.
text: az stack sub create --name StackName --template-file azuredeploy.json --deny-settings-mode denyDelete --deny-settings-excluded-actions Microsoft.Compute/virtualMachines/write --deny-settings-excluded-principals "test1 test2" --location westus --deny-settings-mode None
- name: Create a deployment stack from a local template, apply deny settings to child scopes.
text: az stack sub create --name StackName --template-file azuredeploy.json --deny-settings-mode denyDelete --deny-settings-excluded-actions Microsoft.Compute/virtualMachines/write --deny-settings-apply-to-child-scopes --location westus --deny-settings-mode None
"""

helps['stack sub list'] = """
type: command
short-summary: List all deployment stacks in subscription
examples:
- name: List all stacks
text: az stack sub list
"""

helps['stack sub show'] = """
type: command
short-summary: Get specified deployment stack from subscription scope
examples:
- name: Get stack by name.
text: az stack sub show --name StackName
- name: Get stack by stack resource id.
text: az stack sub show --id /subscriptions/111111111111/providers/Microsoft.Resources/deploymentStacks/StackName
"""

helps['stack sub export'] = """
type: command
short-summary: Export the template used to create the deployment stack
examples:
- name: Export template by name.
text: az stack sub export --name StackName
- name: Export template by stack resource id.
text: az stack sub export --id /subscriptions/111111111111/providers/Microsoft.Resources/deploymentStacks/StackName
"""

helps['stack sub delete'] = """
type: command
short-summary: Delete specified deployment stack from subscription scope
examples:
- name: Delete stack by name.
text: az stack sub delete --name StackName
- name: Delete stack by stack resource id.
text: az stack sub delete --id /subscriptions/111111111111/providers/Microsoft.Resources/deploymentStacks/StackName
"""

helps['stack group'] = """
type: group
short-summary: Manage Deployment Stacks at resource group.
"""

helps['stack group create'] = """
type: command
short-summary: Create or update a deployment stack at resource group scope
examples:
- name: Create a deployment stack using template file and delete resources.
text: az stack group create --name StackName --resource-group ResourceGroup --delete-resources --template-file simpleTemplate.json --description description --deny-settings-mode None
- name: Create a deployment stack with parameter file and delete resource groups.
text: az stack group create --name StackName --resource-group ResourceGroup --delete-resource-groups --template-file simpleTemplate.json --parameters simpleTemplateParams.json --description description --deny-settings-mode None
- name: Create a deployment stack with template spec and delete all resources
text: az stack group create --name StackName --resource-group ResourceGroup --delete-all --template-spec TemplateSpecResourceIDWithVersion --description description --deny-settings-mode None
- name: Create a deployment stack using bicep file.
text: az stack group create --name StackName --resource-group ResourceGroup --template-file simple.bicep --description description --deny-settings-mode None
- name: Create a deployment stack at a different subscription
text: az stack group create --name StackName --resource-group ResourceGroup --template-file simpleTemplate.json --description description --subscription subscriptionId --deny-settings-mode None
- name: Create a deployment stack using parameters from key/value pairs
text: az stack group create --name StackName --template-file simpleTemplate.json --resource-group ResourceGroup --description description --parameters simpleTemplateParams.json value1=foo value2=bar --deny-settings-mode None
- name: Create a deployment stack from a local template, using a parameter file, a remote parameter file, and selectively overriding key/value pairs.
text: az stack group create --name StackName --template-file azuredeploy.json --parameters @params.json --parameters https://mysite/params.json --parameters MyValue=This MyArray=@array.json --resource-group ResourceGroup --deny-settings-mode None
- name: Create a deployment stack from a local template, using deny settings.
text: az stack group create --name StackName --resource-group ResourceGroup --template-file azuredeploy.json --deny-settings-mode denyDelete --deny-settings-excluded-actions Microsoft.Compute/virtualMachines/write --deny-settings-excluded-principals "test1 test2" --deny-settings-mode None
- name: Create a deployment stack from a local template, apply deny setting to child scopes.
text: az stack group create --name StackName --resource-group ResourceGroup --template-file azuredeploy.json --deny-settings-mode denyDelete --deny-settings-excluded-actions Microsoft.Compute/virtualMachines/write --deny-settings-apply-to-child-scopes
"""

helps['stack group list'] = """
type: command
short-summary: List all deployment stacks in resource group
examples:
- name: List all stacks in resource group
text: az stack group list --resource-group ResourceGroup
"""

helps['stack group show'] = """
type: command
short-summary: Get specified deployment stack from resource group scope
examples:
- name: Get stack by name.
text: az stack group show --name StackName --resource-group ResourceGroup
- name: Get stack by stack resource id.
text: az stack group show --id /subscriptions/111111111111/resourceGroups/ResourceGroup/providers/Microsoft.Resources/deploymentStacks/StackName
"""

helps['stack group export'] = """
type: command
short-summary: Export the template used to create the deployment stack from resource group scope
examples:
- name: Export template by name.
text: az stack group export --name StackName --resource-group ResourceGroup
- name: Export template by stack resource id.
text: az stack group export --id /subscriptions/111111111111/resourceGroups/ResourceGroup/providers/Microsoft.Resources/deploymentStacks/StackName
"""

helps['stack group delete'] = """
type: command
short-summary: Delete specified deployment stack from resource group scope
examples:
- name: Delete stack by name.
text: az stack group delete --name StackName --resource-group ResourceGroup
- name: Delete stack by stack resource id.
text: az stack group delete --id /subscriptions/111111111111/resourceGroups/ResourceGroup/providers/Microsoft.Resources/deploymentStacks/StackName
"""

helps['bicep generate-params'] = """
type: command
short-summary: Generate parameters file for a Bicep file.
Expand Down
Loading