forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Microsoft.Resources] New api-version (Azure#28788)
* added baseline * added new property and updated api-version * added id * Renamed property * inherit 'errorDetail' in diagnostics * update * match backend * move property * updated api-version, and added an example * added various tests * updated definitions * fixed examples * fixed definition * rename definition name * added tag * added missing tag * Update sdk-suppressions.yaml * Update sdk-suppressions.yaml * Prettier Check --------- Co-authored-by: kazrael2119 <[email protected]> Co-authored-by: Peng Jiahui <[email protected]> Co-authored-by: Tate Smalligan <[email protected]> Co-authored-by: tsmallig33 <[email protected]>
- Loading branch information
1 parent
eec8195
commit 4405182
Showing
40 changed files
with
9,702 additions
and
1 deletion.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
...esource-manager/Microsoft.Resources/stable/2024-07-01/examples/CalculateTemplateHash.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,46 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-07-01", | ||
"template": { | ||
"$schema": "http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"string": { | ||
"type": "string" | ||
} | ||
}, | ||
"variables": { | ||
"string": "string", | ||
"int": 42, | ||
"bool": true, | ||
"array": [ | ||
1, | ||
2, | ||
3, | ||
4 | ||
], | ||
"object": { | ||
"object": { | ||
"vmSize": "Large", | ||
"location": "West US" | ||
} | ||
} | ||
}, | ||
"resources": [], | ||
"outputs": { | ||
"string": { | ||
"type": "string", | ||
"value": "myvalue" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"minifiedTemplate": "{\"$SCHEMA\":\"HTTP://SCHEMAS.MANAGEMENT.AZURE.COM/DEPLOYMENTTEMPLATE?API-VERSION=2014-04-01-PREVIEW\",\"CONTENTVERSION\":\"1.0.0.0\",\"PARAMETERS\":{\"STRING\":{\"TYPE\":\"STRING\"}},\"VARIABLES\":{\"STRING\":\"STRING\",\"INT\":42,\"BOOL\":TRUE,\"ARRAY\":[1,2,3,4],\"OBJECT\":{\"OBJECT\":{\"VMSIZE\":\"LARGE\",\"LOCATION\":\"WEST US\"}}},\"RESOURCES\":[],\"OUTPUTS\":{\"STRING\":{\"TYPE\":\"STRING\",\"VALUE\":\"MYVALUE\"}}}", | ||
"templateHash": "695440707931307747" | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
.../resource-manager/Microsoft.Resources/stable/2024-07-01/examples/CreateResourceGroup.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,32 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "my-resource-group", | ||
"api-version": "2024-07-01", | ||
"parameters": { | ||
"location": "eastus" | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group", | ||
"name": "my-resource-group", | ||
"location": "eastus", | ||
"properties": { | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group", | ||
"name": "my-resource-group", | ||
"location": "eastus", | ||
"properties": { | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...s/resource-manager/Microsoft.Resources/stable/2024-07-01/examples/DeleteTagsResource.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,17 @@ | ||
{ | ||
"parameters": { | ||
"scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm", | ||
"api-version": "2024-07-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Tags successfully deleted." | ||
}, | ||
"202": { | ||
"description": "Accepted", | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...source-manager/Microsoft.Resources/stable/2024-07-01/examples/DeleteTagsSubscription.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,17 @@ | ||
{ | ||
"parameters": { | ||
"scope": "subscriptions/00000000-0000-0000-0000-000000000000", | ||
"api-version": "2024-07-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Tags successfully deleted." | ||
}, | ||
"202": { | ||
"description": "Accepted", | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" | ||
} | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
.../resource-manager/Microsoft.Resources/stable/2024-07-01/examples/ExportResourceGroup.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,68 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "my-resource-group", | ||
"api-version": "2024-07-01", | ||
"parameters": { | ||
"resources": [ | ||
"*" | ||
], | ||
"options": "IncludeParameterDefaultValue,IncludeComments" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"template": { | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"myResourceType_myFirstResource_name": { | ||
"defaultValue": "myFirstResource", | ||
"type": "String" | ||
}, | ||
"myResourceType_mySecondResource_name": { | ||
"defaultValue": "mySecondResource", | ||
"type": "String" | ||
}, | ||
"myResourceType_myFirstResource_secret": { | ||
"defaultValue": null, | ||
"type": "SecureString" | ||
} | ||
}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"type": "My.RP/myResourceType", | ||
"apiVersion": "2019-01-01", | ||
"name": "[parameters('myResourceType_myFirstResource_name')]", | ||
"location": "West US", | ||
"properties": { | ||
"secret": "[parameters('myResourceType_myFirstResource_secret')]" | ||
} | ||
}, | ||
{ | ||
"type": "My.RP/myResourceType", | ||
"apiVersion": "2019-01-01", | ||
"name": "[parameters('myResourceType_mySecondResource_name')]", | ||
"location": "West US", | ||
"properties": { | ||
"customProperty": "hello!" | ||
} | ||
} | ||
] | ||
}, | ||
"error": { | ||
"code": "ExportTemplateCompletedWithErrors", | ||
"message": "Export template operation completed with errors. Some resources were not exported. Please see details for more information.", | ||
"details": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...ce-manager/Microsoft.Resources/stable/2024-07-01/examples/ExportResourceGroupAsBicep.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,31 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "my-resource-group", | ||
"api-version": "2024-07-01", | ||
"parameters": { | ||
"resources": [ | ||
"*" | ||
], | ||
"options": "IncludeParameterDefaultValue,IncludeComments", | ||
"outputFormat": "Bicep" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"output": "\nparam myResourceType_myFirstResource_name string = 'myFirstResource'\nparam myResourceType_mySecondResource_name string = 'mySecondResource'\n\n@secure()\nparam myResourceType_myFirstResource_secret string = null\n\nresource myResourceType_myFirstResource_name_resource 'My.RP/myResourceType@2019-01-01' = {\n name: myResourceType_myFirstResource_name\n location: 'West US'\n properties: {\n secret: myResourceType_myFirstResource_secret\n }\n}\n\nresource myResourceType_mySecondResource_name_resource 'My.RP/myResourceType@2019-01-01' = {\n name: myResourceType_mySecondResource_name\n location: 'West US'\n properties: {\n customProperty: 'hello!'\n }\n}\n", | ||
"error": { | ||
"code": "ExportTemplateCompletedWithErrors", | ||
"message": "Export template operation completed with errors. Some resources were not exported. Please see details for more information.", | ||
"details": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...ager/Microsoft.Resources/stable/2024-07-01/examples/ExportResourceGroupWithFiltering.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,46 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "my-resource-group", | ||
"api-version": "2024-07-01", | ||
"parameters": { | ||
"resources": [ | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/My.RP/myResourceType/myFirstResource" | ||
], | ||
"options": "SkipResourceNameParameterization" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"template": { | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"myResourceType_myFirstResource_secret": { | ||
"defaultValue": null, | ||
"type": "SecureString" | ||
} | ||
}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"type": "My.RP/myResourceType", | ||
"apiVersion": "2019-01-01", | ||
"name": "myFirstResource", | ||
"location": "West US", | ||
"properties": { | ||
"secret": "[parameters('myResourceType_myFirstResource_secret')]" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
.../Microsoft.Resources/stable/2024-07-01/examples/ForceDeleteVMsAndVMSSInResourceGroup.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,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "my-resource-group", | ||
"forceDeletionTypes": "Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets", | ||
"api-version": "2024-07-01" | ||
}, | ||
"responses": { | ||
"202": { | ||
"description": "Accepted", | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" | ||
} | ||
}, | ||
"200": { | ||
"description": "OK" | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...manager/Microsoft.Resources/stable/2024-07-01/examples/ForceDeleteVMsInResourceGroup.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,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "my-resource-group", | ||
"forceDeletionTypes": "Microsoft.Compute/virtualMachines", | ||
"api-version": "2024-07-01" | ||
}, | ||
"responses": { | ||
"202": { | ||
"description": "Accepted", | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" | ||
} | ||
}, | ||
"200": { | ||
"description": "OK" | ||
} | ||
} | ||
} |
Oops, something went wrong.