Skip to content

Commit

Permalink
variable for subid
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthebrit committed Oct 2, 2023
1 parent c8e78a4 commit 5d0bba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DeploymentStacks/demo.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Set-Location .\DeploymentStacks
$subid = <your subscription ID>

# A regular deployment
az deployment group create --name "<name of deployment>" -g "<resource group>" -f "<json of bicep>" -l "<location>"
Expand Down Expand Up @@ -58,7 +59,7 @@ az stack sub delete --name demoSubStack --delete-all
az stack mg list -m SavillTechSubs

az stack mg create -m SavillTechSubs -n demoMgStack -f toMGRGstorage.bicep --location southcentralus `
--parameters subscriptionID=466c1a5d-e93b-4138-91a5-670daf44b0f8 `
--parameters subscriptionID=$subid `
--deny-settings-mode DenyWriteAndDelete

az stack mg list -m SavillTechSubs
Expand Down

0 comments on commit 5d0bba7

Please sign in to comment.