We have two types of Azure Subscription
CSP Subscription ( through re-seller)
Pay As You Go (Direct Subscription)
We are using following PowerShell command (using rm account) to provision Azure Service Bus:
New-AzureRmResourceGroupDeployment -ResourceGroupName TestRG1 -TemplateUri
Using the above command, we have successfully added a new service bus under Pay As You Go subscription. But when we tried the same way under CSP subscription, we get the following error:
New-AzureRmResourceGroupDeployment : - Error: Code=DisallowedProvider;
Message=The operation is not permitted for namespace
'Microsoft.ServiceBus'"
Error detail
What is going wrong here? Is there any limitation under CSP subscription that there is no way to provision few services like service bus etc.?
Since under CSP subscription only ARM is available and no option for service bus management, we only use PowerShell to provision services and provisioning account has all the permissions.
From the CSP Release notes as of May 31st: • App Service Environment to host any App Services application (including Web Apps, Logic Apps or API Apps) is not available for CSP subscriptions. This capability will become available in the future.
Related
As part of my deployment I would like to call some endpoint in my application to smoke test it.
But we are using Access Restrictions and calls from Azure Devops Release Pipeline are rejected.
Is there a way around this?
Right after asking question I noticed there is new option in Preview in Access Restrictions page in Azure portal.
With this rule Azure Devops will be able to reach application endpoints.
Or using Powershell
Add-AzWebAppAccessRestrictionRule
-ResourceGroupName "resourcegroup"
-WebAppName "webapi"
-Priority 65000
-ServiceTag Azurecloud
-Action Allow
In future you should be able to use AzureDevOps service tag, but looks like it's not supported in Preview - Set a service tag-based rule (preview)
While trying to create Azure Virtual Desktop, I have created one resource group with Azure AD Domain Service to bind Active Directory with Virtual Network.
At the cleanup time, I tried to delete the resource group which contains the Azure AD Domain service.
I tried to delete the resource group from Portal as well as from Powershell. Using the following command -
Get-AzureRmResourceGroup -Name AADS | Remove-AzureRmResourceGroup -Verbose -Force
But I am receiving following error.
Cannot modify resource with id '/subscriptions//resourceGroups/AADS/providers/Microsoft.AAD/domainServices/' because the resource entity provisioning state is not terminal. Please wait for the provisioning state to become terminal and then retry the request.
I attempted delete operation multiple times with an interval of around 2-3 hours but still getting the same error.
This issue belongs to troubleshooting and was fixed by the Microsoft support team.
You can raise a support ticket on azure portal by following this link: https://learn.microsoft.com/en-us/azure/azure-supportability/how-to-create-azure-support-request
I'm having an error when i try to create my SSIS Integration Runtime on Azure Data Factory :
Microsoft.Batch resource provider is not registered under the same subscription of VNet
And here is the detail of the error :
Thank you
A resource provider is a service that supplies the resources you can deploy and manage through Resource Manager. Each resource provider offers a set of resources and operations for working with an Azure service. For example, if you want to store keys and secrets, you work with the Microsoft.KeyVault resource provider.
It appears the SSIS Integration runtime requires a batch account. But you are not able to provision a batch account because the resource provider is not registered. To register a resource provider, you must have permission to perform the /register/action operation for the resource provider. This operation is included in the Contributor and Owner roles.
You can use PowerShell to register it:
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Batch
You can also register it through the portal. Go to Subscriptions -> Resource Providers. Search for Microsoft.Batch and click the register link on that result.
You can find more info in the MS Docs here.
You get this error when you join the SSIS Integration Runtime to Azure VNet.
Go to your Subscription -> Resource Provider -> Microsoft.Batch and register it.
Microsoft.Batch is required because when you join the Integration Runtime to the VNet, Azure, behind the scenes uses Azure Batch service to provision necessary resources like Load Balancer, NSG, Public IP to continue the communication even after IR is within the VNet
I'm trying to setup Azure CLI. The first step is to create a storage for account files. I'm using my Developer Program Benefit subscription.
After I click "Create storage" I get an error:
Storage creation failed
Error:409
{"error":{"code":"MissingSubscriptionRegistration","message":"The subscription is not registered to use namespace 'Microsoft.Storage'. See https://aka.ms/rps-not-found for how to register subscriptions."}}
Can't create a storage account. Please try again.
How to resolve this issue?
The reason you're getting this error is because Microsoft.Storage resource provider which manages Storage Account related resources and activities is not registered with your Azure Subscription.
To fix this, please run the following command:
azure provider register --namespace "Microsoft.Storage" --subscription "<your subscription name or id>"
To get the subscription name/id, please run the following command:
azure account list
For more details on why you're getting this error, please see this: The subscription is not registered to use namespace 'Microsoft.DataFactory error
If you prefer GUI, then you can do it on the Azure portal too:
On the left pane click More services and then select Subscriptions
Select the subscription, in our case Developer Program Benefit
In the Settings area click Resource providers
Find Microsoft.Storage and click Register
This same error with detailed solutions are provided in this post:
How to fix Azure Cloud Shell error "MissingSubscriptionRegistration - The subscription is not registered to use namespace 'Microsoft.Storage'"
I'm trying to try out Azure Container Service with mesos, but during deployment I got this message:
MissingRegistrationForType\",\r\n \"message\": \"The subscription is not registered for the resource type 'virtualMachineScaleSets'
I can't find how I register my subscription for this anywhere. Any ideas?
RPs have to be registered with a subscription before you can use them - if you use the Portal or PowerShell, those do it for you automatically... If you need to manually register, as long as you're not using a subscription that has some limitation (trial, etc) you should be able to do it yourself.
If you have the Azure PowerShell cmdlets installed you can use:
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Compute
Or going to the portal and creating a VMSS should also work.
Which region are you trying to deploy into?
I saw that error when trying to deploy the resource in the region where that resource or the sub-resource is not available. https://azure.microsoft.com/en-us/regions/#services