Open buysoft opened 1 year ago
This sounds more like a resource provider issue than AzOps. Can you share your template with us? Although Microsoft.RecoveryServices/vaults
have no required properties the RP expects a properties
property in the template.
Bicep Example:
resource vault 'Microsoft.RecoveryServices/vaults@2022-09-10' = {
name: 'myvault'
location: 'westeurope'
properties: {}
}
ARM example
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.RecoveryServices/vaults",
"apiVersion": "2022-09-10",
"name": "myvault",
"location": "westeurope",
"properties": {}
}
]
This sounds more like a resource provider issue than AzOps. Can you share your template with us? Although
Microsoft.RecoveryServices/vaults
have no required properties the RP expects aproperties
property in the template.Bicep Example:
resource vault 'Microsoft.RecoveryServices/vaults@2022-09-10' = { name: 'myvault' location: 'westeurope' properties: {} }
ARM example
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "resources": [ { "type": "Microsoft.RecoveryServices/vaults", "apiVersion": "2022-09-10", "name": "myvault", "location": "westeurope", "properties": {} } ]
I was not able to share the template at the moment. I will get back to you as soon as possible!
@buys-stash - any updates?
In addition to what @buys-stash already mentioned for version @2023-04-01
it is also mandatory to specify the publicNetworkAccess
, for example:
resource vault 'Microsoft.RecoveryServices/vaults@2023-04-01' = {
name: vaultName
location: location
tags: tags
sku: {
name: 'RS0'
tier: 'Standard'
}
properties: {
publicNetworkAccess: 'Disabled'
}
}
Describe the bug
When deploying the Microsoft.RecoveryServices/vaults resourceType gives the error "InvalidRestApiParameter - properties parameter is invalid. Please provide a valid properties".
Steps to reproduce
I even reproduced it by doing the -WhatIf with the JSON-template coming from the AzOps Pull.
Screenshots