-
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.
[Resources] Add Deployment scripts as a new resource type - preview - (…
…#7486) * Approved deployments scripts swagger from private repo * Update readme files and fix typo * Update property letter casing * Removing the containerSettings property due to network profile not supporting user assigned MSI. * Update specification/resources/resource-manager/readme.csharp.md update package name Co-Authored-By: Yeming Liu <felix_liu@outlook.com>
- Loading branch information
Showing
12 changed files
with
1,367 additions
and
0 deletions.
There are no files selected for viewing
877 changes: 877 additions & 0 deletions
877
...es/resource-manager/Microsoft.Resources/preview/2019-10-01-preview/deploymentScripts.json
Large diffs are not rendered by default.
Oops, something went wrong.
99 changes: 99 additions & 0 deletions
99
...ger/Microsoft.Resources/preview/2019-10-01-preview/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,99 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview", | ||
"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": {} | ||
} | ||
}, | ||
"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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...ger/Microsoft.Resources/preview/2019-10-01-preview/examples/DeploymentScripts_Delete.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,45 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview", | ||
"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": { | ||
"provisioningState": "Succeeded", | ||
"azPowerShellVersion": "1.7.0", | ||
"scriptContent": "user script body", | ||
"arguments": "user script arguments", | ||
"supportingScriptUris": [ | ||
"https://uri1.to.supporting.script", | ||
"https://uri2.to.supporting.script" | ||
], | ||
"retentionInterval": "PT7D", | ||
"timeout": "PT1H", | ||
"cleanupPreference": "Always", | ||
"results": { | ||
"aciId": "/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" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...anager/Microsoft.Resources/preview/2019-10-01-preview/examples/DeploymentScripts_Get.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,42 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "script-rg", | ||
"scriptName": "MyDeploymentScript" | ||
}, | ||
"responses": { | ||
"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\"", | ||
"retentionInterval": "PT7D", | ||
"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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
22 changes: 22 additions & 0 deletions
22
...er/Microsoft.Resources/preview/2019-10-01-preview/examples/DeploymentScripts_GetLogs.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,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "script-rg", | ||
"scriptName": "MyDeploymentScript" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"log": "script execution stdout/stderr logs" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
|
18 changes: 18 additions & 0 deletions
18
...osoft.Resources/preview/2019-10-01-preview/examples/DeploymentScripts_GetLogsDefault.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,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "script-rg", | ||
"scriptName": "MyDeploymentScript" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"log": "script execution stdout/stderr logs" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
49 changes: 49 additions & 0 deletions
49
....Resources/preview/2019-10-01-preview/examples/DeploymentScripts_ListByResourceGroup.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,49 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "script-rg", | ||
"scriptName": "MyDeploymentScript" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"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" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...t.Resources/preview/2019-10-01-preview/examples/DeploymentScripts_ListBySubscription.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,44 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"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\"", | ||
"retentionInterval": "PT7D", | ||
"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" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.