bulky-kite-69343
01/07/2022, 4:26 PMaz afd secret list --profile-name $PROFILE_NAME --resource-group $RESOURCE_GROUP_NAME
[
{
"deploymentStatus": "NotStarted",
"id": "/subscriptions/{{subscriptionId}}/resourcegroups/{{resourceGroupName}}/providers/Microsoft.Cdn/profiles/{{profileName}}/secrets/{{secretName}}",
"name": "name",
"parameters": {
"certificateAuthority": "CN=DigiCert TLS RSA SHA256 2020 CA1, O=DigiCert Inc, C=US",
"expirationDate": "2022-05-10T23:59:59+00:00",
"secretSource": {
"id": "/subscriptions/{{subscriptionId}}/resourcegroups/{{resourceGroupName}}/providers/Microsoft.KeyVault/vaults/{{keyVaultName}}certificates/{{certificateName}}",
"resourceGroup": "{{resourceGroupName}}"
},
"secretVersion": null,
"subject": "*.<http://example.com|example.com>",
"subjectAlternativeNames": [
"*.<http://example.com|example.com>",
"<http://example.com|example.com>"
],
"thumbprint": "***",
"type": "CustomerCertificate",
"useLatestVersion": true
},
"provisioningState": "Succeeded",
"resourceGroup": "{{resourceGrupName}}",
"systemData": null,
"type": "Microsoft.Cdn/profiles/secrets"
}
]
If you look at secretSource: { id: string }
when getting the output from the CLI on the secret, you can see it outputs it as certificates
when comparing against the docs it has certificate
in the id string for secret source. I am happy to contribute an update, but I am unsure where this needs to be updated at.great-queen-39697
01/07/2022, 7:55 PMbulky-kite-69343
01/07/2022, 8:26 PM...
SecretSource = new AzureNative.Cdn.Inputs.ResourceReferenceArgs
{
Id = "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/certificate/certName",
},
...
This section specifically. I found this by pulling the resource from the az cli
but I have not found its reference in the Microsoft documentation specifically.great-queen-39697
01/07/2022, 8:55 PMbulky-kite-69343
01/10/2022, 2:14 PM