<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Prisma CSPM terraform.tf -&amp;gt; Azure WebShell execution But it has issue. Anyon who had the same problem and solved? in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/prisma-cspm-terraform-tf-gt-azure-webshell-execution-but-it-has/m-p/514240#M106916</link>
    <description>&lt;P&gt;Yesterday, I tried to register Azure a tenant's subscription to Paloalto Prisma CSPM.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the process, it required 5 values below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output 'a__directory_tenant_id' { value = var.tenant_id}&lt;BR /&gt;output 'b__subscription_id' { value = var.subscription_id }&lt;BR /&gt;output 'c__application_client_id' { value = azuread_application.prisma_cloud_app.application_id}&lt;BR /&gt;output 'd__application_client_secret' { value = nonsensitive(azuread_application_password.password.value)}&lt;BR /&gt;output 'e__enterprise_application_object_id' { value = azuread_service_principal.prisma_cloud_sp.id}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so I downloaded terraform.tf file from the step 3 in Prisma Cloud&lt;/P&gt;
&lt;P&gt;Settings -&amp;gt; Cloud Accounts -&amp;gt; Add Cloud Account -&amp;gt; Azure.&lt;/P&gt;
&lt;P&gt;After I filled out right tenant ID &amp;amp; Subscription ID to blanks, I colud download the file, terraform.tf&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and it's content's like below:&lt;/P&gt;
&lt;P&gt;----------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;##################################&lt;BR /&gt;# EDIT THE FOLLOWING PARAMETERS&lt;BR /&gt;#&lt;BR /&gt;# tenant_id : Active directory's ID&lt;BR /&gt;# (Portal) Azure AD -&amp;gt; Properties -&amp;gt; Directory ID&lt;BR /&gt;#&lt;BR /&gt;# subscription_id: Subscription ID that you want to onboard&lt;BR /&gt;# Custom role are going to be created from this subscription&lt;BR /&gt;# Please use a permanent subscription&lt;BR /&gt;#&lt;BR /&gt;# cloud_environment: Cloud environment to be used.&lt;BR /&gt;# Default: public&lt;BR /&gt;# Possible values are public, usgovernment, german, and china&lt;BR /&gt;#&lt;/P&gt;
&lt;P&gt;variable 'tenant_id' {&lt;BR /&gt;type = string&lt;BR /&gt;default = '8db7ee9a-5c88-49fb-b0f6-0a74cc4739a4'&lt;BR /&gt;}&lt;BR /&gt;variable 'subscription_id' {&lt;BR /&gt;type = string&lt;BR /&gt;default = '22fab5b8-0acb-4e61-8e37-fbeabc3f4266'&lt;BR /&gt;}&lt;BR /&gt;variable 'cloud_environment' {&lt;BR /&gt;type = string&lt;BR /&gt;default = 'public'&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;# By default setting the password to last for a year&lt;BR /&gt;variable 'application_password_expiration' {&lt;BR /&gt;type = string&lt;BR /&gt;default = '8760h'&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;# The list of permissions added to the custom role&lt;BR /&gt;variable 'custom_role_permissions' {&lt;BR /&gt;type = list(string)&lt;BR /&gt;default = [&lt;BR /&gt;'Microsoft.Network/networkInterfaces/effectiveNetworkSecurityGroups/action',&lt;BR /&gt;'Microsoft.Network/networkInterfaces/effectiveRouteTable/action',&lt;BR /&gt;'Microsoft.Network/networkWatchers/securityGroupView/action',&lt;BR /&gt;'Microsoft.Network/networkWatchers/queryFlowLogStatus/*',&lt;BR /&gt;'Microsoft.Network/virtualwans/vpnconfiguration/action',&lt;BR /&gt;'Microsoft.ContainerRegistry/registries/webhooks/getCallbackConfig/action',&lt;BR /&gt;'Microsoft.Web/sites/config/list/action',&lt;BR /&gt;'Microsoft.Web/sites/publishxml/action',&lt;BR /&gt;'Microsoft.ContainerRegistry/registries/listCredentials/action',&lt;BR /&gt;'Microsoft.Web/sites/functions/action',&lt;BR /&gt;'Microsoft.ContainerInstance/containerGroups/containers/exec/action'&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#############################&lt;BR /&gt;# Initializing the provider&lt;BR /&gt;##############################&lt;/P&gt;
&lt;P&gt;terraform {&lt;BR /&gt;required_providers {&lt;BR /&gt;azuread = {&lt;BR /&gt;version = '=1.4.0'&lt;BR /&gt;}&lt;BR /&gt;azurerm = {&lt;BR /&gt;version = '=2.49.0'&lt;BR /&gt;}&lt;BR /&gt;random = {&lt;BR /&gt;version = '=3.1.0'&lt;BR /&gt;}&lt;BR /&gt;time = {&lt;BR /&gt;version = '=0.7.0'&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;provider 'azuread' {&lt;BR /&gt;tenant_id = var.tenant_id&lt;BR /&gt;environment = var.cloud_environment&lt;BR /&gt;}&lt;BR /&gt;provider 'azurerm' {&lt;BR /&gt;tenant_id = var.tenant_id&lt;BR /&gt;subscription_id = var.subscription_id&lt;BR /&gt;features {}&lt;BR /&gt;}&lt;BR /&gt;provider 'random' {}&lt;/P&gt;
&lt;P&gt;provider 'time' {}&lt;/P&gt;
&lt;P&gt;#######################################################&lt;BR /&gt;# Setting up an Application &amp;amp; Service Principal&lt;BR /&gt;# Will be shared by all of the onboarded subscriptions&lt;BR /&gt;#######################################################&lt;BR /&gt;resource 'random_string' 'unique_id' {&lt;BR /&gt;length = 5&lt;BR /&gt;min_lower = 5&lt;BR /&gt;special = false&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azuread_application' 'prisma_cloud_app' {&lt;BR /&gt;display_name = 'Prisma Cloud App ${random_string.unique_id.result}'&lt;BR /&gt;homepage = '&lt;A href="https://www.paloaltonetworks.com/prisma/cloud" target="_blank"&gt;https://www.paloaltonetworks.com/prisma/cloud&lt;/A&gt;'&lt;BR /&gt;available_to_other_tenants = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azuread_service_principal' 'prisma_cloud_sp' {&lt;BR /&gt;application_id = azuread_application.prisma_cloud_app.application_id&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;#######################################################&lt;BR /&gt;# Generate Application Client Secret&lt;BR /&gt;#######################################################&lt;BR /&gt;resource 'random_password' 'application_client_secret' {&lt;BR /&gt;length = 32&lt;BR /&gt;special = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azuread_application_password' 'password' {&lt;BR /&gt;value = random_password.application_client_secret.result&lt;BR /&gt;end_date = timeadd(timestamp(),var.application_password_expiration)&lt;BR /&gt;application_object_id = azuread_application.prisma_cloud_app.object_id&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#######################################################&lt;BR /&gt;# Setting up custom roles&lt;BR /&gt;#######################################################&lt;/P&gt;
&lt;P&gt;resource 'azurerm_role_definition' 'custom_prisma_role' {&lt;BR /&gt;name = 'Prisma Cloud ${random_string.unique_id.result}'&lt;BR /&gt;scope = '/subscriptions/${var.subscription_id}'&lt;BR /&gt;description = 'Prisma Cloud custom role created via Terraform'&lt;BR /&gt;assignable_scopes = ['/subscriptions/${var.subscription_id}']&lt;BR /&gt;permissions {&lt;BR /&gt;actions = var.custom_role_permissions&lt;BR /&gt;not_actions = []&lt;BR /&gt;}&lt;BR /&gt;timeouts {&lt;BR /&gt;create = '5m'&lt;BR /&gt;read = '5m'&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'time_sleep' 'wait_20_seconds' {&lt;BR /&gt;depends_on = [&lt;BR /&gt;azurerm_role_definition.custom_prisma_role&lt;BR /&gt;]&lt;BR /&gt;create_duration = '20s'&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azurerm_role_assignment' 'assign_custom_prisma_role' {&lt;BR /&gt;scope = '/subscriptions/${var.subscription_id}'&lt;BR /&gt;principal_id = azuread_service_principal.prisma_cloud_sp.id&lt;BR /&gt;role_definition_id = azurerm_role_definition.custom_prisma_role.role_definition_resource_id&lt;BR /&gt;depends_on = [&lt;BR /&gt;time_sleep.wait_20_seconds&lt;BR /&gt;]&lt;BR /&gt;skip_service_principal_aad_check = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azurerm_role_assignment' 'assign_reader' {&lt;BR /&gt;scope = '/subscriptions/${var.subscription_id}'&lt;BR /&gt;principal_id = azuread_service_principal.prisma_cloud_sp.id&lt;BR /&gt;role_definition_name = 'Reader'&lt;BR /&gt;skip_service_principal_aad_check = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azurerm_role_assignment' 'assign_reader_data_access' {&lt;BR /&gt;scope = '/subscriptions/${var.subscription_id}'&lt;BR /&gt;principal_id = azuread_service_principal.prisma_cloud_sp.id&lt;BR /&gt;role_definition_name = 'Reader and Data Access'&lt;BR /&gt;skip_service_principal_aad_check = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;output 'a__directory_tenant_id' { value = var.tenant_id}&lt;BR /&gt;output 'b__subscription_id' { value = var.subscription_id }&lt;BR /&gt;output 'c__application_client_id' { value = azuread_application.prisma_cloud_app.application_id}&lt;BR /&gt;output 'd__application_client_secret' { value = nonsensitive(azuread_application_password.password.value)}&lt;BR /&gt;output 'e__enterprise_application_object_id' { value = azuread_service_principal.prisma_cloud_sp.id}&lt;/P&gt;
&lt;P&gt;--------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that:&lt;/P&gt;
&lt;P&gt;1. Logged in Azure account&lt;/P&gt;
&lt;P&gt;2. Go to the Right directory(tenant)&lt;/P&gt;
&lt;P&gt;3. Execute Azure Shell&lt;/P&gt;
&lt;P&gt;4. Upload the file, terraform.tf&lt;/P&gt;
&lt;P&gt;5. Input command: terraform init -&amp;gt; terraform apply&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it show me an error messages like this:&lt;/P&gt;
&lt;P&gt;Error: Error obtaining Authorization Token from the Azure CLI: Error parsing json result from Azure CLI: Error waiting for the Azure CLI: exit status 1: ERROR:&amp;nbsp;Tenant shouldn't be specified for cloud for cloud Shell account&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with provider['registry.terraform.io/hashicorp/azuread'],&lt;BR /&gt;on:terraform.tf line 75, in provider 'azuread':&lt;BR /&gt;75: provider 'azuread' {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AND STILL CAN'T FIND THE REASON WHY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;Please note you are posting a public message where community members and experts can provide assistance. Sharing private information such as serial numbers or company information is not recommended.</description>
    <pubDate>Thu, 08 Sep 2022 09:22:38 GMT</pubDate>
    <dc:creator>JKim57</dc:creator>
    <dc:date>2022-09-08T09:22:38Z</dc:date>
    <item>
      <title>Prisma CSPM terraform.tf -&gt; Azure WebShell execution But it has issue. Anyon who had the same problem and solved?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/prisma-cspm-terraform-tf-gt-azure-webshell-execution-but-it-has/m-p/514240#M106916</link>
      <description>&lt;P&gt;Yesterday, I tried to register Azure a tenant's subscription to Paloalto Prisma CSPM.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the process, it required 5 values below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output 'a__directory_tenant_id' { value = var.tenant_id}&lt;BR /&gt;output 'b__subscription_id' { value = var.subscription_id }&lt;BR /&gt;output 'c__application_client_id' { value = azuread_application.prisma_cloud_app.application_id}&lt;BR /&gt;output 'd__application_client_secret' { value = nonsensitive(azuread_application_password.password.value)}&lt;BR /&gt;output 'e__enterprise_application_object_id' { value = azuread_service_principal.prisma_cloud_sp.id}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so I downloaded terraform.tf file from the step 3 in Prisma Cloud&lt;/P&gt;
&lt;P&gt;Settings -&amp;gt; Cloud Accounts -&amp;gt; Add Cloud Account -&amp;gt; Azure.&lt;/P&gt;
&lt;P&gt;After I filled out right tenant ID &amp;amp; Subscription ID to blanks, I colud download the file, terraform.tf&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and it's content's like below:&lt;/P&gt;
&lt;P&gt;----------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;##################################&lt;BR /&gt;# EDIT THE FOLLOWING PARAMETERS&lt;BR /&gt;#&lt;BR /&gt;# tenant_id : Active directory's ID&lt;BR /&gt;# (Portal) Azure AD -&amp;gt; Properties -&amp;gt; Directory ID&lt;BR /&gt;#&lt;BR /&gt;# subscription_id: Subscription ID that you want to onboard&lt;BR /&gt;# Custom role are going to be created from this subscription&lt;BR /&gt;# Please use a permanent subscription&lt;BR /&gt;#&lt;BR /&gt;# cloud_environment: Cloud environment to be used.&lt;BR /&gt;# Default: public&lt;BR /&gt;# Possible values are public, usgovernment, german, and china&lt;BR /&gt;#&lt;/P&gt;
&lt;P&gt;variable 'tenant_id' {&lt;BR /&gt;type = string&lt;BR /&gt;default = '8db7ee9a-5c88-49fb-b0f6-0a74cc4739a4'&lt;BR /&gt;}&lt;BR /&gt;variable 'subscription_id' {&lt;BR /&gt;type = string&lt;BR /&gt;default = '22fab5b8-0acb-4e61-8e37-fbeabc3f4266'&lt;BR /&gt;}&lt;BR /&gt;variable 'cloud_environment' {&lt;BR /&gt;type = string&lt;BR /&gt;default = 'public'&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;# By default setting the password to last for a year&lt;BR /&gt;variable 'application_password_expiration' {&lt;BR /&gt;type = string&lt;BR /&gt;default = '8760h'&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;# The list of permissions added to the custom role&lt;BR /&gt;variable 'custom_role_permissions' {&lt;BR /&gt;type = list(string)&lt;BR /&gt;default = [&lt;BR /&gt;'Microsoft.Network/networkInterfaces/effectiveNetworkSecurityGroups/action',&lt;BR /&gt;'Microsoft.Network/networkInterfaces/effectiveRouteTable/action',&lt;BR /&gt;'Microsoft.Network/networkWatchers/securityGroupView/action',&lt;BR /&gt;'Microsoft.Network/networkWatchers/queryFlowLogStatus/*',&lt;BR /&gt;'Microsoft.Network/virtualwans/vpnconfiguration/action',&lt;BR /&gt;'Microsoft.ContainerRegistry/registries/webhooks/getCallbackConfig/action',&lt;BR /&gt;'Microsoft.Web/sites/config/list/action',&lt;BR /&gt;'Microsoft.Web/sites/publishxml/action',&lt;BR /&gt;'Microsoft.ContainerRegistry/registries/listCredentials/action',&lt;BR /&gt;'Microsoft.Web/sites/functions/action',&lt;BR /&gt;'Microsoft.ContainerInstance/containerGroups/containers/exec/action'&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#############################&lt;BR /&gt;# Initializing the provider&lt;BR /&gt;##############################&lt;/P&gt;
&lt;P&gt;terraform {&lt;BR /&gt;required_providers {&lt;BR /&gt;azuread = {&lt;BR /&gt;version = '=1.4.0'&lt;BR /&gt;}&lt;BR /&gt;azurerm = {&lt;BR /&gt;version = '=2.49.0'&lt;BR /&gt;}&lt;BR /&gt;random = {&lt;BR /&gt;version = '=3.1.0'&lt;BR /&gt;}&lt;BR /&gt;time = {&lt;BR /&gt;version = '=0.7.0'&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;provider 'azuread' {&lt;BR /&gt;tenant_id = var.tenant_id&lt;BR /&gt;environment = var.cloud_environment&lt;BR /&gt;}&lt;BR /&gt;provider 'azurerm' {&lt;BR /&gt;tenant_id = var.tenant_id&lt;BR /&gt;subscription_id = var.subscription_id&lt;BR /&gt;features {}&lt;BR /&gt;}&lt;BR /&gt;provider 'random' {}&lt;/P&gt;
&lt;P&gt;provider 'time' {}&lt;/P&gt;
&lt;P&gt;#######################################################&lt;BR /&gt;# Setting up an Application &amp;amp; Service Principal&lt;BR /&gt;# Will be shared by all of the onboarded subscriptions&lt;BR /&gt;#######################################################&lt;BR /&gt;resource 'random_string' 'unique_id' {&lt;BR /&gt;length = 5&lt;BR /&gt;min_lower = 5&lt;BR /&gt;special = false&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azuread_application' 'prisma_cloud_app' {&lt;BR /&gt;display_name = 'Prisma Cloud App ${random_string.unique_id.result}'&lt;BR /&gt;homepage = '&lt;A href="https://www.paloaltonetworks.com/prisma/cloud" target="_blank"&gt;https://www.paloaltonetworks.com/prisma/cloud&lt;/A&gt;'&lt;BR /&gt;available_to_other_tenants = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azuread_service_principal' 'prisma_cloud_sp' {&lt;BR /&gt;application_id = azuread_application.prisma_cloud_app.application_id&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;#######################################################&lt;BR /&gt;# Generate Application Client Secret&lt;BR /&gt;#######################################################&lt;BR /&gt;resource 'random_password' 'application_client_secret' {&lt;BR /&gt;length = 32&lt;BR /&gt;special = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azuread_application_password' 'password' {&lt;BR /&gt;value = random_password.application_client_secret.result&lt;BR /&gt;end_date = timeadd(timestamp(),var.application_password_expiration)&lt;BR /&gt;application_object_id = azuread_application.prisma_cloud_app.object_id&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#######################################################&lt;BR /&gt;# Setting up custom roles&lt;BR /&gt;#######################################################&lt;/P&gt;
&lt;P&gt;resource 'azurerm_role_definition' 'custom_prisma_role' {&lt;BR /&gt;name = 'Prisma Cloud ${random_string.unique_id.result}'&lt;BR /&gt;scope = '/subscriptions/${var.subscription_id}'&lt;BR /&gt;description = 'Prisma Cloud custom role created via Terraform'&lt;BR /&gt;assignable_scopes = ['/subscriptions/${var.subscription_id}']&lt;BR /&gt;permissions {&lt;BR /&gt;actions = var.custom_role_permissions&lt;BR /&gt;not_actions = []&lt;BR /&gt;}&lt;BR /&gt;timeouts {&lt;BR /&gt;create = '5m'&lt;BR /&gt;read = '5m'&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'time_sleep' 'wait_20_seconds' {&lt;BR /&gt;depends_on = [&lt;BR /&gt;azurerm_role_definition.custom_prisma_role&lt;BR /&gt;]&lt;BR /&gt;create_duration = '20s'&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azurerm_role_assignment' 'assign_custom_prisma_role' {&lt;BR /&gt;scope = '/subscriptions/${var.subscription_id}'&lt;BR /&gt;principal_id = azuread_service_principal.prisma_cloud_sp.id&lt;BR /&gt;role_definition_id = azurerm_role_definition.custom_prisma_role.role_definition_resource_id&lt;BR /&gt;depends_on = [&lt;BR /&gt;time_sleep.wait_20_seconds&lt;BR /&gt;]&lt;BR /&gt;skip_service_principal_aad_check = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azurerm_role_assignment' 'assign_reader' {&lt;BR /&gt;scope = '/subscriptions/${var.subscription_id}'&lt;BR /&gt;principal_id = azuread_service_principal.prisma_cloud_sp.id&lt;BR /&gt;role_definition_name = 'Reader'&lt;BR /&gt;skip_service_principal_aad_check = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;resource 'azurerm_role_assignment' 'assign_reader_data_access' {&lt;BR /&gt;scope = '/subscriptions/${var.subscription_id}'&lt;BR /&gt;principal_id = azuread_service_principal.prisma_cloud_sp.id&lt;BR /&gt;role_definition_name = 'Reader and Data Access'&lt;BR /&gt;skip_service_principal_aad_check = true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;output 'a__directory_tenant_id' { value = var.tenant_id}&lt;BR /&gt;output 'b__subscription_id' { value = var.subscription_id }&lt;BR /&gt;output 'c__application_client_id' { value = azuread_application.prisma_cloud_app.application_id}&lt;BR /&gt;output 'd__application_client_secret' { value = nonsensitive(azuread_application_password.password.value)}&lt;BR /&gt;output 'e__enterprise_application_object_id' { value = azuread_service_principal.prisma_cloud_sp.id}&lt;/P&gt;
&lt;P&gt;--------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that:&lt;/P&gt;
&lt;P&gt;1. Logged in Azure account&lt;/P&gt;
&lt;P&gt;2. Go to the Right directory(tenant)&lt;/P&gt;
&lt;P&gt;3. Execute Azure Shell&lt;/P&gt;
&lt;P&gt;4. Upload the file, terraform.tf&lt;/P&gt;
&lt;P&gt;5. Input command: terraform init -&amp;gt; terraform apply&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it show me an error messages like this:&lt;/P&gt;
&lt;P&gt;Error: Error obtaining Authorization Token from the Azure CLI: Error parsing json result from Azure CLI: Error waiting for the Azure CLI: exit status 1: ERROR:&amp;nbsp;Tenant shouldn't be specified for cloud for cloud Shell account&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with provider['registry.terraform.io/hashicorp/azuread'],&lt;BR /&gt;on:terraform.tf line 75, in provider 'azuread':&lt;BR /&gt;75: provider 'azuread' {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AND STILL CAN'T FIND THE REASON WHY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;Please note you are posting a public message where community members and experts can provide assistance. Sharing private information such as serial numbers or company information is not recommended.</description>
      <pubDate>Thu, 08 Sep 2022 09:22:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/prisma-cspm-terraform-tf-gt-azure-webshell-execution-but-it-has/m-p/514240#M106916</guid>
      <dc:creator>JKim57</dc:creator>
      <dc:date>2022-09-08T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma CSPM terraform.tf -&gt; Azure WebShell execution But it has issue. Anyon who had the same problem and solved?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/prisma-cspm-terraform-tf-gt-azure-webshell-execution-but-it-has/m-p/514684#M106917</link>
      <description>&lt;P&gt;Please run "&lt;SPAN&gt;az login&lt;/SPAN&gt;" first, and then login in another page, after login wait response from CLI, and then apply again.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 06:59:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/prisma-cspm-terraform-tf-gt-azure-webshell-execution-but-it-has/m-p/514684#M106917</guid>
      <dc:creator>guoli</dc:creator>
      <dc:date>2022-09-13T06:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma CSPM terraform.tf -&gt; Azure WebShell execution But it has issue. Anyon who had the same problem and solved?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/prisma-cspm-terraform-tf-gt-azure-webshell-execution-but-it-has/m-p/516883#M107323</link>
      <description>&lt;P&gt;I had to use&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;az login --tenant &amp;lt;tenant_id&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;where &amp;lt;tenant_id&amp;gt; is the guid of the tenant that I wanted to onboard. After that terraform apply worked.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 10:32:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/prisma-cspm-terraform-tf-gt-azure-webshell-execution-but-it-has/m-p/516883#M107323</guid>
      <dc:creator>JensWegar</dc:creator>
      <dc:date>2022-10-05T10:32:53Z</dc:date>
    </item>
  </channel>
</rss>

