@LXF Below approach has been recommended by our internal AI tool (need to verify before this is implemented),
There are several ways to retrieve the output values from an ARM template deployment without logging into the Azure tenant. Here are a few options:
Use the Azure REST API: You can use the Azure REST API to retrieve the output values from the deployment. You will need to authenticate to the API using a service principal or managed identity, but you will not need to log into the Azure tenant. You can use the az rest
command in the Azure CLI or send HTTP requests directly to the API.
Use the Azure PowerShell module: You can use the Azure PowerShell module to retrieve the output values from the deployment. You will need to authenticate to Azure using a service principal or managed identity, but you will not need to log into the Azure tenant. You can use the Get-AzResourceGroupDeployment
cmdlet to retrieve the output values.
Use the Azure CLI: You can use the Azure CLI to retrieve the output values from the deployment. You will need to authenticate to Azure using a service principal or managed identity, but you will not need to log into the Azure tenant. You can use the az deployment show
command to retrieve the output values.
Please note that in order to use any of these methods, you will need to have the appropriate permissions to access the deployment and retrieve the output values. You will also need to authenticate to Azure using a service principal or managed identity, which requires some setup and configuration.
Note: AI suggestion, need to verify/validate before.