There is no way to create a Subscription using this SDK. #23885
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
There appears to be no way to create a subscription using the Azure SDK for GoLang.
Here is sample code I found to do something similar:
However, this doesn't seem to work if the subscription doesn't already exist.
Since I want to create a brand new Subscription, what do I pass in for the first 3 arguments to
CreateOrUpdate()
?It needs a
resourceGroupName
, aserviceName
and anSID
.Those three values are used by
CreateOrUpdate()
to construct the following URL:urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}"
The text was updated successfully, but these errors were encountered: