List eligible SKUs for Microsoft Fabric resource provider
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Fabric/skus?api-version=2023-11-01
Rozwiń tabelę
Name
In
Required
Type
Description
subscriptionId
path
True
string
(uuid)
The ID of the target subscription. The value must be an UUID.
api-version
query
True
string
minLength: 1
The API version to use for this operation.
Rozwiń tabelę
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Rozwiń tabelę
Name
Description
user_impersonation
impersonate your user account
List eligible SKUs for a new capacity
Sample request
GET https://management.azure.com/subscriptions/548B7FB7-3B2A-4F46-BB02-66473F1FC22C/providers/Microsoft.Fabric/skus?api-version=2023-11-01
/**
* Samples for FabricCapacities ListSkus.
*/
public final class Main {
/*
* x-ms-original-file: 2023-11-01/FabricCapacities_ListSkus.json
*/
/**
* Sample code: List eligible SKUs for a new capacity.
*
* @param manager Entry point to FabricManager.
*/
public static void listEligibleSKUsForANewCapacity(com.azure.resourcemanager.fabric.FabricManager manager) {
manager.fabricCapacities().listSkus(com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.fabric import FabricMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-fabric
# USAGE
python fabric_capacities_list_skus.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.fabric_capacities.list_skus()
for item in response:
print(item)
# x-ms-original-file: 2023-11-01/FabricCapacities_ListSkus.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
package armfabric_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/fabric/armfabric"
)
// Generated from example definition: D:/w/Azure/azure-sdk-for-go/sdk/resourcemanager/fabric/armfabric/TempTypeSpecFiles/Microsoft.Fabric.Management/examples/2023-11-01/FabricCapacities_ListSkus.json
func ExampleCapacitiesClient_NewListSKUsPager() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armfabric.NewClientFactory("548B7FB7-3B2A-4F46-BB02-66473F1FC22C", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewCapacitiesClient().NewListSKUsPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page = armfabric.CapacitiesClientListSKUsResponse{
// RpSKUEnumerationForNewResourceResult: armfabric.RpSKUEnumerationForNewResourceResult{
// Value: []*armfabric.RpSKUDetailsForNewResource{
// {
// Name: to.Ptr("F8"),
// Locations: []*string{
// to.Ptr("West Europe"),
// },
// ResourceType: to.Ptr("Capacities"),
// },
// {
// Name: to.Ptr("F64"),
// Locations: []*string{
// to.Ptr("West Europe"),
// },
// ResourceType: to.Ptr("Capacities"),
// },
// {
// Name: to.Ptr("F128"),
// Locations: []*string{
// to.Ptr("West Europe"),
// },
// ResourceType: to.Ptr("Capacities"),
// },
// {
// Name: to.Ptr("F512"),
// Locations: []*string{
// to.Ptr("West Europe"),
// },
// ResourceType: to.Ptr("Capacities"),
// },
// },
// },
// }
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { FabricClient } = require("@azure/arm-fabric");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to list eligible SKUs for Microsoft Fabric resource provider
*
* @summary list eligible SKUs for Microsoft Fabric resource provider
* x-ms-original-file: 2023-11-01/FabricCapacities_ListSkus.json
*/
async function listEligibleSKUsForANewCapacity() {
const credential = new DefaultAzureCredential();
const subscriptionId = "548B7FB7-3B2A-4F46-BB02-66473F1FC22C";
const client = new FabricClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.fabricCapacities.listSkus()) {
resArray.push(item);
}
console.log(resArray);
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample response
{
"value": [
{
"name": "F8",
"locations": [
"West Europe"
],
"resourceType": "Capacities"
},
{
"name": "F64",
"locations": [
"West Europe"
],
"resourceType": "Capacities"
},
{
"name": "F128",
"locations": [
"West Europe"
],
"resourceType": "Capacities"
},
{
"name": "F512",
"locations": [
"West Europe"
],
"resourceType": "Capacities"
}
]
}
Rozwiń tabelę
Object
The resource management error additional info.
Rozwiń tabelę
Name
Type
Description
info
object
The additional info.
type
string
The additional info type.
Object
The error detail.
Rozwiń tabelę
Name
Type
Description
additionalInfo
ErrorAdditionalInfo []
The error additional info.
code
string
The error code.
details
ErrorDetail []
The error details.
message
string
The error message.
target
string
The error target.
Object
Error response
Rozwiń tabelę
Name
Type
Description
error
ErrorDetail
The error object.
RpSkuDetailsForNewResource
Object
The SKU details
Rozwiń tabelę
Name
Type
Description
locations
string[]
The list of available locations for the SKU
name
string
The SKU's name
resourceType
string
The resource type
RpSkuEnumerationForNewResourceResult
Object
An object that represents enumerating SKUs for new resources.
Rozwiń tabelę
Name
Type
Description
nextLink
string
Url for the next page. Null if no more pages available
value
RpSkuDetailsForNewResource []
The collection of available SKUs for new resources