This file contains 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
#Requires -Module AzureRM.Profile | |
#Requires -Module AzureRM.KeyVault | |
#Login and Select the default subscription if needed | |
#Login-AzureRmAccount | |
#Select-AzureRmSubscription -SubscriptionName 'subscription name' | |
#Change the values below before running the script | |
$VaultName = 'myvault' #Globally Unique Name of the KeyVault | |
$VaultLocation = 'East US' #Location of the KeyVault |
This file contains 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
function api { | |
<# | |
.Synopsis | |
Get the api versions and locations for a resource type. | |
.Description | |
Lists all the available api versions and locations for a given resource type. Information is pulled from the /providers api | |
which returns the information in the manifest published to ARM. | |
.Notes | |
The resource parameter requires the format of Namespace/type, e.g. Microsoft.Storage/storageAccounts | |
> api Microsoft.Storage/storageAccounts |
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"type": { | |
"type": "string", | |
"defaultValue": "Microsoft.Network/publicIPAddresses" | |
} | |
}, | |
"resources": [ |
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"metadata": { | |
"_generator": { | |
"name": "bicep", | |
"version": "0.4.451.19169", | |
"templateHash": "16656980055364544710" | |
} | |
}, |
This file contains 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
Param( | |
[string][Parameter(Mandatory=$true)]$deploymentName, # the full name of the deployment, e.g. pid-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX | |
[string][Parameter(Mandatory=$true)]$resourceGroupName | |
) | |
# Get the correlationId of the named deployment | |
$correlationId = (Get-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName -Name "$deploymentName").correlationId | |
# Find all deployments with that correlationId | |
$deployments = Get-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName | Where-Object{$_.correlationId -eq $correlationId} |
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#", | |
"handler": "Microsoft.Azure.CreateUIDef", | |
"version": "0.1.2-preview", | |
"parameters": { | |
"basics": [ | |
{ | |
"name": "vnetSelector", | |
"type": "Microsoft.Solutions.ResourceSelector", | |
"label": "Virtual Network", |
OlderNewer