I am trying to update my APIM with a new hostname using the Azure CLI.
When doing this
$hostConfiguration = '[{ "hostName": "myhostname.com", "type": "Proxy", "keyVaultId": "https://mykeyvault.vault.azure.net/secrets/mysecret" }]' az apim update --name "apim-name" --resource-group "rg-name" --set hostnameConfigurations=$hostConfiguration I get this :
Unable to build a model: Cannot deserialize as [HostnameConfiguration] an object of type <class 'str'>, DeserializationError: Cannot deserialize as [HostnameConfiguration] an object of type <class'str'> What is wrong with the way I do it?
