From 930927837cb1581b2d4fc98c6ad858bfd5620a71 Mon Sep 17 00:00:00 2001 From: "Sdruscia, Ugo" Date: Thu, 11 Aug 2022 13:26:06 -0400 Subject: [PATCH 1/2] Updated deprecated 'group deployment' command --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24e68c3..9cd28b0 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Deploy the `Distech.CloudRelay.Gateway.json` file into a resource group that ser ```PowerShell az group create --name rg-cloudrelaygateway --location "East US" -az group deployment create ` +az deployment group create ` --handle-extended-json-format ` --name CloudRelayGatewayDeployment ` --resource-group rg-cloudrelaygateway ` @@ -89,7 +89,7 @@ Deploy the `Distech.CloudRelay.Compute.json` file into a resource group that ser ```PowerShell az group create --name rg-cloudrelaycompute --location "East US" -az group deployment create ` +az deployment group create ` --handle-extended-json-format ` --name CloudRelayComputeDeployment ` --resource-group rg-cloudrelaycompute ` From 9d5c9dae1c38178d66653730a370909a00ceb881 Mon Sep 17 00:00:00 2001 From: "Sdruscia, Ugo" Date: Thu, 11 Aug 2022 14:22:10 -0400 Subject: [PATCH 2/2] Updated obsolete 'az ad app create' command. #10 --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9cd28b0..da3ff2f 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,12 @@ Create the Azure Active Directory application registrations ```PowerShell az ad app create --display-name CloudRelayAPI -az ad app create --display-name CloudRelayClient --password S0meHardT0GuessPassw0rd + +az ad app create --display-name CloudRelayClient +az ad app credential reset --display-name AzureCliGeneratedPwd --id --append ``` -Take note of both application registrations `appId` and provided `password`. They will be needed later on. +Take note of both application registrations `appId` and generated `password`. They will be needed later on. ### Resources Deployment @@ -233,7 +235,7 @@ POST https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token HTTP/1.1 Content-Type: application/x-www-form-urlencoded Host: login.microsoftonline.com -grant_type=client_credentials&client_id={cloudRelayClientAppId}&client_secret=S0meHardT0GuessPassw0rd&scope={cloudRelayApiAppId}/.default +grant_type=client_credentials&client_id={cloudRelayClientAppId}&client_secret={azureCliGeneratedPwd}&scope={cloudRelayApiAppId}/.default ``` Response: