Example #1
0
        public async Task <string> DeleteCustomRoleOnSubscription(string subscriptionId, string roleId)
        {
            var requestUrl = $"{Config.AzureResourceManagerUrl}/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/{roleId}?api-version={apiVersion}";
            var response   = await ArmHttpClient.Delete(requestUrl);

            return(response);
        }
Example #2
0
        public async Task <string> DeletePolicyAssignment(string subscriptionId, string policyAssignmentName)
        {
            var requestUrl = $"{Config.AzureResourceManagerUrl}/subscriptions/{subscriptionId}/providers/Microsoft.authorization/policyassignments/{policyAssignmentName}?api-version={policyApiVersion}";

            return(await ArmHttpClient.Delete(requestUrl));
        }