In the following example:
We have this code snippet:
In line 57, where the value of data.azurerm_subscription.primary.id is coming from? I am asking since The data block in the line 53 is empty.
In the following example:
We have this code snippet:
In line 57, where the value of data.azurerm_subscription.primary.id is coming from? I am asking since The data block in the line 53 is empty.
If you check the data source documentation it doesn't require any input. The only optional argument is subscription_id:
If this argument is omitted, the subscription ID of the current Azure Resource Manager provider is used.
Which depends on the way you authenticate with Azure.
If you're using Azure CLI, it should resolve to your Azure CLI default subscription (which you can find out with az account show).