Azure Lighthouse deprecated code

%3CLINGO-SUB%20id%3D%22lingo-sub-1448794%22%20slang%3D%22en-US%22%3EAzure%20Lighthouse%20deprecated%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1448794%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20onboard%20a%20tenancy%20utilising%20ARM%20templates%20using%20the%20cli%20Azure%20cli.%20Additionally%2C%20I%20have%20tried%20using%20the%20PowerShell%20with%20cli%20plugin%20also%20but%20receiving%20%3CFONT%3Edeprecated%20%3C%2FFONT%3Eerrors.%3C%2FP%3E%3CP%3EWhen%20using%20the%20Azure%20CLI%20documented%20ion%20the%20below%20URL%20when%20logged%20in%20to%20the%20Azure%20environment%20I'm%20receiving%20the%20following%20error%3A%3C%2FP%3E%3CP%3E%22This%20command%20has%20been%20deprecated%20and%20will%20be%20removed%20in%20a%20future%20release.%20Use%20'deployment%20sub%20list'%20instead%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20changing%20the%20syntax%20I'm%20still%20encountering%20issues.%20Does%20anyone%20know%20if%20the%20syntax%20for%20deploying%20ARM%20templates%20has%20changed%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWeb%20Site%20used%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flighthouse%2Fhow-to%2Fonboard-customer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flighthouse%2Fhow-to%2Fonboard-customer%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1448794%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Lighthouse%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

Hi all,

I'm trying to onboard a tenancy utilising ARM templates using the cli Azure cli. Additionally, I have tried using the PowerShell with cli plugin also but receiving deprecated errors.

When using the Azure CLI documented ion the below URL when logged in to the Azure environment I'm receiving the following error:

"This command has been deprecated and will be removed in a future release. Use 'deployment sub list' instead".

 

After changing the syntax I'm still encountering issues. Does anyone know if the syntax for deploying ARM templates has changed?

 

Web Site used

https://docs.microsoft.com/en-us/azure/lighthouse/how-to/onboard-customer

1 Reply
Highlighted

@arran1580 I only use PowerShell via an Automation Account (I redeploy daily, so I can make changes in one location and the new Lighthouse config gets distributed to 200+ subscriptions), and this comes in my warnings screen as well:

 

6/11/2020, 3:07:08 AM
Warning
Breaking changes in the cmdlet 'New-AzDeployment' :
6/11/2020, 3:07:08 AM
Warning
- The cmdlet 'New-AzSubscriptionDeployment' is replacing this cmdlet.

 

So could you try your ARM template using New-AzSubscriptionDeployment ?