-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd9aa6d
commit c05daca
Showing
16 changed files
with
1,797 additions
and
7 deletions.
There are no files selected for viewing
928 changes: 928 additions & 0 deletions
928
...n/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json
Large diffs are not rendered by default.
Oops, something went wrong.
107 changes: 107 additions & 0 deletions
107
...urce-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_Create.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "script-rg", | ||
"scriptName": "MyDeploymentScript", | ||
"deploymentScript": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"properties": { | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "PT7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-02-01T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z" | ||
}, | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
}, | ||
"outputs": { | ||
"output1": "value1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
89 changes: 89 additions & 0 deletions
89
...Resources/stable/2020-10-01/examples/DeploymentScripts_Create_No_UserManagedIdentity.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "script-rg", | ||
"scriptName": "MyDeploymentScript", | ||
"deploymentScript": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"properties": { | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "PT7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-02-01T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z" | ||
}, | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
}, | ||
"outputs": { | ||
"output1": "value1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
116 changes: 116 additions & 0 deletions
116
....Resources/stable/2020-10-01/examples/DeploymentScripts_Create_Using_Custom_Aci_Name.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "script-rg", | ||
"scriptName": "MyDeploymentScript", | ||
"deploymentScript": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"properties": { | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"containerSettings": { | ||
"containerGroupName": "contoso-aci" | ||
}, | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "PT7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-02-01T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z" | ||
}, | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"containerSettings": { | ||
"containerGroupName": "contoso-aci" | ||
}, | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"kind": "AzurePowerShell", | ||
"location": "westus", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} | ||
} | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", | ||
"arguments": "-Location 'westus' -Name \"*rg2\"", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "P7D", | ||
"timeout": "PT1H", | ||
"containerSettings": { | ||
"containerGroupName": "contoso-aci" | ||
}, | ||
"cleanupPreference": "Always", | ||
"status": { | ||
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", | ||
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", | ||
"startTime": "2018-11-13T15:19:45-08:00", | ||
"endTime": "2018-11-13T15:19:45-08:00", | ||
"expirationTime": "2018-11-13T15:19:45-08:00" | ||
}, | ||
"outputs": { | ||
"output1": "value1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.