/// <summary> /// Get the security metadata for a provisioning service. /// </summary> /// <remarks> /// List the primary and secondary keys for a provisioning service. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='provisioningServiceName'> /// The provisioning service name to get the shared access keys for. /// </param> /// <param name='resourceGroupName'> /// resource group name /// </param> public static IPage <SharedAccessSignatureAuthorizationRuleAccessRightsDescription> ListKeys(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName) { return(operations.ListKeysAsync(provisioningServiceName, resourceGroupName).GetAwaiter().GetResult()); }