Skip to content

Commit d6afa70

Browse files
subha-saSubha Sambandamurthy
authored andcommitted
[Hub Generated] Review request for Microsoft.Resources to add version stable/2023-08-01 (#25270)
* Adds base for updating Microsoft.Resources from version stable/2020-10-01 to version 2023-08-01 * Updates readme * Updates API version in new specs and examples * adding new subnet Id Property to the ARM template and example file * updated the readme file * added example files * prettier check update * fixed the readme files errors * lint error and model validation error fix * more model valiadtion fixes * updated format of suppression * applying suppressions based on new format * updating integer format * suppressing the integer format check as there is tooling issue * added x-ms-arm-details format to subnet id * added more suppression * added more suppression --------- Co-authored-by: Subha Sambandamurthy <[email protected]>
1 parent 03656ec commit d6afa70

17 files changed

+2051
-3
lines changed

specification/resources/resource-manager/Microsoft.Resources/stable/2023-08-01/deploymentScripts.json

Lines changed: 979 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-08-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "script-rg",
6+
"scriptName": "MyDeploymentScript",
7+
"deploymentScript": {
8+
"kind": "AzurePowerShell",
9+
"location": "westus",
10+
"identity": {
11+
"type": "UserAssigned",
12+
"userAssignedIdentities": {
13+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {}
14+
}
15+
},
16+
"properties": {
17+
"azPowerShellVersion": "1.7.0",
18+
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name",
19+
"arguments": "-Location 'westus' -Name \"*rg2\"",
20+
"supportingScriptUris": [
21+
"https://uri1.to.supporting.script",
22+
"https://uri2.to.supporting.script"
23+
],
24+
"retentionInterval": "P7D",
25+
"timeout": "PT1H",
26+
"cleanupPreference": "Always"
27+
}
28+
}
29+
},
30+
"responses": {
31+
"201": {
32+
"body": {
33+
"kind": "AzurePowerShell",
34+
"location": "westus",
35+
"identity": {
36+
"type": "UserAssigned",
37+
"userAssignedIdentities": {
38+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {}
39+
}
40+
},
41+
"systemData": {
42+
"createdBy": "string",
43+
"createdByType": "Application",
44+
"createdAt": "2020-02-01T01:01:01.1075056Z",
45+
"lastModifiedBy": "string",
46+
"lastModifiedByType": "Application",
47+
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z"
48+
},
49+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/script-rg/providers/Microsoft.Resources/deployments/MyDeploymentScript",
50+
"properties": {
51+
"provisioningState": "Creating",
52+
"azPowerShellVersion": "1.7.0",
53+
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name",
54+
"arguments": "-Location 'westus' -Name \"*rg2\"",
55+
"supportingScriptUris": [
56+
"https://uri1.to.supporting.script",
57+
"https://uri2.to.supporting.script"
58+
],
59+
"retentionInterval": "P7D",
60+
"timeout": "PT1H",
61+
"cleanupPreference": "Always",
62+
"status": {
63+
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer",
64+
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage",
65+
"startTime": "2018-11-13T15:19:45-08:00",
66+
"endTime": "2018-11-13T15:19:45-08:00",
67+
"expirationTime": "2018-11-13T15:19:45-08:00"
68+
}
69+
}
70+
}
71+
},
72+
"200": {
73+
"body": {
74+
"kind": "AzurePowerShell",
75+
"location": "westus",
76+
"identity": {
77+
"type": "UserAssigned",
78+
"userAssignedIdentities": {
79+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {}
80+
}
81+
},
82+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/script-rg/providers/Microsoft.Resources/deployments/MyDeploymentScript",
83+
"properties": {
84+
"provisioningState": "Succeeded",
85+
"azPowerShellVersion": "1.7.0",
86+
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name",
87+
"arguments": "-Location 'westus' -Name \"*rg2\"",
88+
"supportingScriptUris": [
89+
"https://uri1.to.supporting.script",
90+
"https://uri2.to.supporting.script"
91+
],
92+
"retentionInterval": "P7D",
93+
"timeout": "PT1H",
94+
"cleanupPreference": "Always",
95+
"status": {
96+
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer",
97+
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage",
98+
"startTime": "2018-11-13T15:19:45-08:00",
99+
"endTime": "2018-11-13T15:19:45-08:00",
100+
"expirationTime": "2018-11-13T15:19:45-08:00"
101+
},
102+
"outputs": {
103+
"additionalProperties": {
104+
"output1": "value1"
105+
}
106+
}
107+
}
108+
}
109+
}
110+
}
111+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-08-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "script-rg",
6+
"scriptName": "MyDeploymentScript",
7+
"deploymentScript": {
8+
"kind": "AzurePowerShell",
9+
"location": "westus",
10+
"properties": {
11+
"azPowerShellVersion": "1.7.0",
12+
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name",
13+
"arguments": "-Location 'westus' -Name \"*rg2\"",
14+
"supportingScriptUris": [
15+
"https://uri1.to.supporting.script",
16+
"https://uri2.to.supporting.script"
17+
],
18+
"retentionInterval": "P7D",
19+
"timeout": "PT1H",
20+
"cleanupPreference": "Always"
21+
}
22+
}
23+
},
24+
"responses": {
25+
"201": {
26+
"body": {
27+
"kind": "AzurePowerShell",
28+
"location": "westus",
29+
"systemData": {
30+
"createdBy": "string",
31+
"createdByType": "Application",
32+
"createdAt": "2020-02-01T01:01:01.1075056Z",
33+
"lastModifiedBy": "string",
34+
"lastModifiedByType": "Application",
35+
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z"
36+
},
37+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/script-rg/providers/Microsoft.Resources/deployments/MyDeploymentScript",
38+
"properties": {
39+
"provisioningState": "Creating",
40+
"azPowerShellVersion": "1.7.0",
41+
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name",
42+
"arguments": "-Location 'westus' -Name \"*rg2\"",
43+
"supportingScriptUris": [
44+
"https://uri1.to.supporting.script",
45+
"https://uri2.to.supporting.script"
46+
],
47+
"retentionInterval": "P7D",
48+
"timeout": "PT1H",
49+
"cleanupPreference": "Always",
50+
"status": {
51+
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer",
52+
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage",
53+
"startTime": "2018-11-13T15:19:45-08:00",
54+
"endTime": "2018-11-13T15:19:45-08:00",
55+
"expirationTime": "2018-11-13T15:19:45-08:00"
56+
}
57+
}
58+
}
59+
},
60+
"200": {
61+
"body": {
62+
"kind": "AzurePowerShell",
63+
"location": "westus",
64+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/script-rg/providers/Microsoft.Resources/deployments/MyDeploymentScript",
65+
"properties": {
66+
"provisioningState": "Succeeded",
67+
"azPowerShellVersion": "1.7.0",
68+
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name",
69+
"arguments": "-Location 'westus' -Name \"*rg2\"",
70+
"supportingScriptUris": [
71+
"https://uri1.to.supporting.script",
72+
"https://uri2.to.supporting.script"
73+
],
74+
"retentionInterval": "P7D",
75+
"timeout": "PT1H",
76+
"cleanupPreference": "Always",
77+
"status": {
78+
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer",
79+
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage",
80+
"startTime": "2018-11-13T15:19:45-08:00",
81+
"endTime": "2018-11-13T15:19:45-08:00",
82+
"expirationTime": "2018-11-13T15:19:45-08:00"
83+
},
84+
"outputs": {
85+
"additionalProperties": {
86+
"output1": "value1"
87+
}
88+
}
89+
}
90+
}
91+
}
92+
}
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-08-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "script-rg",
6+
"scriptName": "MyDeploymentScript",
7+
"deploymentScript": {
8+
"kind": "AzurePowerShell",
9+
"location": "westus",
10+
"identity": {
11+
"type": "UserAssigned",
12+
"userAssignedIdentities": {
13+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {}
14+
}
15+
},
16+
"properties": {
17+
"azPowerShellVersion": "1.7.0",
18+
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name",
19+
"containerSettings": {
20+
"containerGroupName": "contoso-aci"
21+
},
22+
"arguments": "-Location 'westus' -Name \"*rg2\"",
23+
"supportingScriptUris": [
24+
"https://uri1.to.supporting.script",
25+
"https://uri2.to.supporting.script"
26+
],
27+
"retentionInterval": "P7D",
28+
"timeout": "PT1H",
29+
"cleanupPreference": "Always"
30+
}
31+
}
32+
},
33+
"responses": {
34+
"201": {
35+
"body": {
36+
"kind": "AzurePowerShell",
37+
"location": "westus",
38+
"identity": {
39+
"type": "UserAssigned",
40+
"userAssignedIdentities": {
41+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {}
42+
}
43+
},
44+
"systemData": {
45+
"createdBy": "string",
46+
"createdByType": "Application",
47+
"createdAt": "2020-02-01T01:01:01.1075056Z",
48+
"lastModifiedBy": "string",
49+
"lastModifiedByType": "Application",
50+
"lastModifiedAt": "2020-02-01T01:01:01.1075056Z"
51+
},
52+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/script-rg/providers/Microsoft.Resources/deployments/MyDeploymentScript",
53+
"properties": {
54+
"provisioningState": "Creating",
55+
"azPowerShellVersion": "1.7.0",
56+
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name",
57+
"arguments": "-Location 'westus' -Name \"*rg2\"",
58+
"supportingScriptUris": [
59+
"https://uri1.to.supporting.script",
60+
"https://uri2.to.supporting.script"
61+
],
62+
"retentionInterval": "P7D",
63+
"timeout": "PT1H",
64+
"containerSettings": {
65+
"containerGroupName": "contoso-aci"
66+
},
67+
"cleanupPreference": "Always",
68+
"status": {
69+
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer",
70+
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage",
71+
"startTime": "2018-11-13T15:19:45-08:00",
72+
"endTime": "2018-11-13T15:19:45-08:00",
73+
"expirationTime": "2018-11-13T15:19:45-08:00"
74+
}
75+
}
76+
}
77+
},
78+
"200": {
79+
"body": {
80+
"kind": "AzurePowerShell",
81+
"location": "westus",
82+
"identity": {
83+
"type": "UserAssigned",
84+
"userAssignedIdentities": {
85+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {}
86+
}
87+
},
88+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/script-rg/providers/Microsoft.Resources/deployments/MyDeploymentScript",
89+
"properties": {
90+
"provisioningState": "Succeeded",
91+
"azPowerShellVersion": "1.7.0",
92+
"scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name",
93+
"arguments": "-Location 'westus' -Name \"*rg2\"",
94+
"supportingScriptUris": [
95+
"https://uri1.to.supporting.script",
96+
"https://uri2.to.supporting.script"
97+
],
98+
"retentionInterval": "P7D",
99+
"timeout": "PT1H",
100+
"containerSettings": {
101+
"containerGroupName": "contoso-aci"
102+
},
103+
"cleanupPreference": "Always",
104+
"status": {
105+
"containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer",
106+
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage",
107+
"startTime": "2018-11-13T15:19:45-08:00",
108+
"endTime": "2018-11-13T15:19:45-08:00",
109+
"expirationTime": "2018-11-13T15:19:45-08:00"
110+
},
111+
"outputs": {
112+
"additionalProperties": {
113+
"output1": "value1"
114+
}
115+
}
116+
}
117+
}
118+
}
119+
}
120+
}

0 commit comments

Comments
 (0)