This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: https://techcommunity.microsoft.com/blog/microsoftsentinelblog/deploy-microsoft-sentinel-using-bicep/4270970 | |
| # Connect to Azure CLI with device code | |
| az login --use-device-code | |
| # Get a token to be able to use the https://management.azure.com/ api | |
| $token = az account get-access-token --resource "https://management.azure.com/" --query accessToken -o tsv | |
| #region Navigation to the considered Log Analytics workspace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: https://techcommunity.microsoft.com/blog/microsoftsentinelblog/deploy-microsoft-sentinel-using-bicep/4270970 | |
| # Connect to Azure CLI with device code | |
| az login --use-device-code | |
| # Get a token to be able to use the https://management.azure.com/ api | |
| $token = az account get-access-token --resource "https://management.azure.com/" --query accessToken -o tsv | |
| #region Navigation to the considered Log Analytics workspace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @description('Name of the Log Analytics Workspace') | |
| param logAnalyticsWorkspaceName string | |
| @description('Log Analytics Workspace Pricing Tier') | |
| param logAnalyticsWorkspaceSkuName string = 'PerGB2018' | |
| @description('Resource Group Location') | |
| param location string | |
| @description('Tags for resources') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Login to Azure CLI | |
| az login | |
| # Using Azure CLI get the ID of the current tenant | |
| $tenantId = az account show --query tenantId -o tsv | |
| Write-Host "Tenant ID: $tenantId" | |
| # Get a token for Microsoft Purview API | |
| $token = az account get-access-token --resource "https://purview.azure.net" --query accessToken -o tsv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Login to Azure CLI | |
| az login | |
| # Using Azure CLI get the ID of the current tenant | |
| $tenantId = az account show --query tenantId -o tsv | |
| Write-Host "Tenant ID: $tenantId" | |
| # Get a token for Microsoft Purview API | |
| $token = az account get-access-token --resource "https://purview.azure.net" --query accessToken -o tsv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Login to Azure CLI | |
| az login | |
| # Using Azure CLI get the ID of the current tenant | |
| $tenantId = az account show --query tenantId -o tsv | |
| Write-Host "Tenant ID: $tenantId" | |
| # Get a token for Microsoft Purview API | |
| $token = az account get-access-token --resource "https://purview.azure.net" --query accessToken -o tsv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Login to Azure CLI | |
| az login | |
| # Using Azure CLI get the ID of the current tenant | |
| $tenantId = az account show --query tenantId -o tsv | |
| Write-Host "Tenant ID: $tenantId" | |
| # Get a token for Microsoft Purview API | |
| $token = az account get-access-token --resource "https://purview.azure.net" --query accessToken -o tsv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Login to Azure CLI | |
| az login | |
| # Using Azure CLI get the ID of the current tenant | |
| $tenantId = az account show --query tenantId -o tsv | |
| Write-Host "Tenant ID: $tenantId" | |
| # Get a token for Microsoft Purview API | |
| $token = az account get-access-token --resource "https://purview.azure.net" --query accessToken -o tsv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Login to Azure CLI | |
| az login | |
| # Prompt the user to ask if they want to create a new security group to manage the access of the Purview account managed identity to the Power BI / Fabric Admin API | |
| $createNewSecurityGroup = Read-Host -Prompt 'Do you want to create a new security group to manage the access of the Purview account managed identity to the Power BI / Fabric Admin API? (Y/N)' | |
| # If the user wants to create a new security group | |
| if ($createNewSecurityGroup.ToUpper() -eq "Y") { | |
| # Prompt user to get the name and the description of the security group to create in Entra ID (aka Azure AD) | |
| $securityGroupName = Read-Host -Prompt 'Enter the name of the security group to create in Entra ID (aka Azure AD)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Login to Azure CLI | |
| az login | |
| # Using Azure CLI get the ID of the current tenant | |
| $tenantId = az account show --query tenantId -o tsv | |
| Write-Host "Tenant ID: $tenantId" | |
| # Get a token for Microsoft Purview API | |
| $token = az account get-access-token --resource "https://purview.azure.net" --query accessToken -o tsv |
NewerOlder