I have been trying to setup an ACS namespace to enable access from a PHP integration app. This was an option in the portal but has now been removed, so I'm trying to create the namespace through powershell. As you can see from the commented out lines I have been trying several approaches. The azure environment was setup in the last few weeks.
#Add-AzureRMAccount
Login-AzureRmAccount -SubscriptionId "my-guid"
#Select-AzureRMSubscription -SubscriptionId "my-guid" | Select-AzureRmSubscription
Get-AzureRmSubscription -SubscriptionId "my-guid" | Select-AzureRmSubscription
New-AzureSBNamespace -Name "myservicebus.servicebus.windows.net" -Location "UK South" -CreateACSNamespace $true -NamespaceType Messaging
I have tried several combinations but I keep getting the same error when I call the New-AzureSBNamespace method which is as follows "No Default subscription has been designated"
EDIT: I can now create the namespace / service bus via power shell but don't seem to have away of creating ACS for it.
Login-AzureRmAccount -SubscriptionId "2a428947-cc0e-4fa5-aef2-a7ad0fe7a26e"
Get-AzureRmSubscription -SubscriptionId "2a428947-cc0e-4fa5-aef2-a7ad0fe7a26e" | Select-AzureRmSubscription
New-AzureRmServiceBusNamespace -ResourceGroup StevenStone-Shop -NamespaceName my-service-bus -Location UKSouth -SkuName "Basic"
The reason why I am trying to do this is so that I can connect via PHP with a connection as shown below:
"Endpoint=[yourEndpoint];SharedSecretIssuer=[Default Issuer];SharedSecretValue=[Default Key]"
https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-php-how-to-use-queues