Skip to content

Commit f7017f3

Browse files
authored
Merge pull request #111577 from JnHs/jh-lh-deploymentapis
API update
2 parents 89dabc3 + 63b59d7 commit f7017f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

articles/lighthouse/how-to/onboard-customer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Onboard a customer to Azure delegated resource management
33
description: Learn how to onboard a customer to Azure delegated resource management, allowing their resources to be accessed and managed through your own tenant.
4-
ms.date: 03/24/2020
4+
ms.date: 04/16/2020
55
ms.topic: conceptual
66
---
77

@@ -201,14 +201,14 @@ Because this is a subscription-level deployment, it cannot be initiated in the A
201201
# Log in first with Connect-AzAccount if you're not using Cloud Shell
202202
203203
# Deploy Azure Resource Manager template using template and parameter file locally
204-
New-AzDeployment -Name <deploymentName> `
204+
New-AzSubscriptionDeployment -Name <deploymentName> `
205205
-Location <AzureRegion> `
206206
-TemplateFile <pathToTemplateFile> `
207207
-TemplateParameterFile <pathToParameterFile> `
208208
-Verbose
209209
210210
# Deploy Azure Resource Manager template that is located externally
211-
New-AzDeployment -Name <deploymentName> `
211+
New-AzSubscriptionDeployment -Name <deploymentName> `
212212
-Location <AzureRegion> `
213213
-TemplateUri <templateUri> `
214214
-TemplateParameterUri <parameterUri> `

articles/lighthouse/how-to/policy-at-scale.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ foreach ($ManagedSub in $ManagedSubscriptions)
3636
{
3737
Select-AzSubscription -SubscriptionId $ManagedSub.subscriptionId
3838
39-
New-AzDeployment -Name mgmt `
39+
New-AzSubscriptionDeployment -Name mgmt `
4040
-Location eastus `
4141
-TemplateUri "https://raw.githubusercontent.com/Azure/Azure-Lighthouse-samples/master/templates/policy-enforce-https-storage/enforceHttpsStorage.json" `
4242
-AsJob
@@ -65,7 +65,7 @@ foreach ($ManagedSub in $ManagedSubscriptions)
6565
{
6666
select-azsubscription -subscriptionId $ManagedSub.subscriptionId
6767
68-
Remove-AzDeployment -Name mgmt -AsJob
68+
Remove-AzSubscriptionDeployment -Name mgmt -AsJob
6969
7070
$Assignment = Get-AzPolicyAssignment | where-object {$_.Name -like "enforce-https-storage-assignment"}
7171

0 commit comments

Comments
 (0)