使用指定的参数创建配置存储区。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}?api-version=2023-03-01
URI 参数
名称 |
在 |
必需 |
类型 |
说明 |
configStoreName
|
path |
True
|
string
|
配置存储区的名称。
Regex pattern: ^[a-zA-Z0-9_-]*$
|
resourceGroupName
|
path |
True
|
string
|
容器注册表所属的资源组的名称。
|
subscriptionId
|
path |
True
|
string
|
Microsoft Azure 订阅 ID。
|
api-version
|
query |
True
|
string
|
客户端 API 版本。
|
请求正文
名称 |
必需 |
类型 |
说明 |
location
|
True
|
string
|
资源所在的地理位置
|
sku
|
True
|
Sku
|
配置存储的 SKU。
|
identity
|
|
ResourceIdentity
|
托管标识信息(如果已配置)。
|
properties.createMode
|
|
CreateMode
|
指示是否需要恢复配置存储区。
|
properties.disableLocalAuth
|
|
boolean
|
禁用除 AAD 身份验证以外的所有身份验证方法。
|
properties.enablePurgeProtection
|
|
boolean
|
指定是否为此配置存储区启用清除防护的属性。
|
properties.encryption
|
|
EncryptionProperties
|
配置存储的加密设置。
|
properties.publicNetworkAccess
|
|
PublicNetworkAccess
|
启用专用终结点时,控制来自公用网络的数据平面流量的权限。
|
properties.softDeleteRetentionInDays
|
|
integer
|
软删除配置存储时将保留该存储的时间(以天为单位)。
|
tags
|
|
object
|
资源标记。
|
响应
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 |
说明 |
user_impersonation
|
模拟用户帐户
|
示例
ConfigurationStores_Create
Sample Request
PUT https://management.azure.com/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso?api-version=2023-03-01
{
"location": "westus",
"sku": {
"name": "Standard"
},
"tags": {
"myTag": "myTagValue"
}
}
import com.azure.resourcemanager.appconfiguration.models.Sku;
import java.util.HashMap;
import java.util.Map;
/** Samples for ConfigurationStores Create. */
public final class Main {
/*
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json
*/
/**
* Sample code: ConfigurationStores_Create.
*
* @param manager Entry point to AppConfigurationManager.
*/
public static void configurationStoresCreate(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
manager
.configurationStores()
.define("contoso")
.withRegion("westus")
.withExistingResourceGroup("myResourceGroup")
.withSku(new Sku().withName("Standard"))
.withTags(mapOf("myTag", "myTagValue"))
.create();
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
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.appconfiguration import AppConfigurationManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-appconfiguration
# USAGE
python configuration_stores_create.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 = AppConfigurationManagementClient(
credential=DefaultAzureCredential(),
subscription_id="c80fb759-c965-4c6a-9110-9b2b2d038882",
)
response = client.configuration_stores.begin_create(
resource_group_name="myResourceGroup",
config_store_name="contoso",
config_store_creation_parameters={
"location": "westus",
"sku": {"name": "Standard"},
"tags": {"myTag": "myTagValue"},
},
).result()
print(response)
# x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.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 armappconfiguration_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration/v2"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json
func ExampleConfigurationStoresClient_BeginCreate_configurationStoresCreate() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armappconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewConfigurationStoresClient().BeginCreate(ctx, "myResourceGroup", "contoso", armappconfiguration.ConfigurationStore{
Location: to.Ptr("westus"),
Tags: map[string]*string{
"myTag": to.Ptr("myTagValue"),
},
SKU: &armappconfiguration.SKU{
Name: to.Ptr("Standard"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ConfigurationStore = armappconfiguration.ConfigurationStore{
// Name: to.Ptr("contoso"),
// Type: to.Ptr("Microsoft.AppConfiguration/configurationStores"),
// ID: to.Ptr("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso"),
// Location: to.Ptr("westus"),
// Tags: map[string]*string{
// "myTag": to.Ptr("myTagValue"),
// },
// Properties: &armappconfiguration.ConfigurationStoreProperties{
// CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()),
// DisableLocalAuth: to.Ptr(false),
// EnablePurgeProtection: to.Ptr(false),
// Encryption: &armappconfiguration.EncryptionProperties{
// KeyVaultProperties: &armappconfiguration.KeyVaultProperties{
// },
// },
// Endpoint: to.Ptr("https://contoso.azconfig.io"),
// PrivateEndpointConnections: []*armappconfiguration.PrivateEndpointConnectionReference{
// },
// ProvisioningState: to.Ptr(armappconfiguration.ProvisioningStateSucceeded),
// SoftDeleteRetentionInDays: to.Ptr[int32](30),
// },
// SKU: &armappconfiguration.SKU{
// Name: to.Ptr("Standard"),
// },
// SystemData: &armappconfiguration.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()),
// CreatedBy: to.Ptr("foo@contoso.com"),
// CreatedByType: to.Ptr(armappconfiguration.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()),
// LastModifiedBy: to.Ptr("foo@contoso.com"),
// LastModifiedByType: to.Ptr(armappconfiguration.CreatedByTypeUser),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Creates a configuration store with the specified parameters.
*
* @summary Creates a configuration store with the specified parameters.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json
*/
async function configurationStoresCreate() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const configStoreCreationParameters = {
location: "westus",
sku: { name: "Standard" },
tags: { myTag: "myTagValue" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginCreateAndWait(
resourceGroupName,
configStoreName,
configStoreCreationParameters
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.AppConfiguration;
using Azure.ResourceManager.AppConfiguration.Models;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json
// this example is just showing the usage of "ConfigurationStores_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
string subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
string resourceGroupName = "myResourceGroup";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
// get the collection of this AppConfigurationStoreResource
AppConfigurationStoreCollection collection = resourceGroupResource.GetAppConfigurationStores();
// invoke the operation
string configStoreName = "contoso";
AppConfigurationStoreData data = new AppConfigurationStoreData(new AzureLocation("westus"), new AppConfigurationSku("Standard"))
{
Tags =
{
["myTag"] = "myTagValue",
},
};
ArmOperation<AppConfigurationStoreResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configStoreName, data);
AppConfigurationStoreResource result = lro.Value;
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
AppConfigurationStoreData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
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
{
"type": "Microsoft.AppConfiguration/configurationStores",
"properties": {
"provisioningState": "Succeeded",
"creationDate": "2018-04-24T16:30:55+00:00",
"endpoint": "https://contoso.azconfig.io",
"encryption": {
"keyVaultProperties": {
"keyIdentifier": null,
"identityClientId": null
}
},
"disableLocalAuth": false,
"privateEndpointConnections": [],
"softDeleteRetentionInDays": 30,
"enablePurgeProtection": false
},
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
},
"sku": {
"name": "Standard"
},
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso",
"name": "contoso",
"location": "westus",
"tags": {
"myTag": "myTagValue"
}
}
{
"type": "Microsoft.AppConfiguration/configurationStores",
"properties": {
"provisioningState": "Creating",
"creationDate": "2018-04-24T16:30:55+00:00",
"endpoint": "https://contoso.azconfig.io",
"encryption": {
"keyVaultProperties": {
"keyIdentifier": null,
"identityClientId": null
}
},
"disableLocalAuth": false,
"privateEndpointConnections": [],
"softDeleteRetentionInDays": 30,
"enablePurgeProtection": false
},
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
},
"sku": {
"name": "Standard"
},
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso",
"name": "contoso",
"location": "westus",
"tags": {
"myTag": "myTagValue"
}
}
ConfigurationStores_Create_With_Identity
Sample Request
PUT https://management.azure.com/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso?api-version=2023-03-01
{
"location": "westus",
"sku": {
"name": "Standard"
},
"tags": {
"myTag": "myTagValue"
},
"identity": {
"type": "SystemAssigned, UserAssigned",
"userAssignedIdentities": {
"/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {}
}
}
}
import com.azure.resourcemanager.appconfiguration.models.IdentityType;
import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity;
import com.azure.resourcemanager.appconfiguration.models.Sku;
import com.azure.resourcemanager.appconfiguration.models.UserIdentity;
import java.util.HashMap;
import java.util.Map;
/** Samples for ConfigurationStores Create. */
public final class Main {
/*
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json
*/
/**
* Sample code: ConfigurationStores_Create_With_Identity.
*
* @param manager Entry point to AppConfigurationManager.
*/
public static void configurationStoresCreateWithIdentity(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
manager
.configurationStores()
.define("contoso")
.withRegion("westus")
.withExistingResourceGroup("myResourceGroup")
.withSku(new Sku().withName("Standard"))
.withTags(mapOf("myTag", "myTagValue"))
.withIdentity(
new ResourceIdentity()
.withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED)
.withUserAssignedIdentities(
mapOf(
"/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2",
new UserIdentity())))
.create();
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
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.appconfiguration import AppConfigurationManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-appconfiguration
# USAGE
python configuration_stores_create_with_identity.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 = AppConfigurationManagementClient(
credential=DefaultAzureCredential(),
subscription_id="c80fb759-c965-4c6a-9110-9b2b2d038882",
)
response = client.configuration_stores.begin_create(
resource_group_name="myResourceGroup",
config_store_name="contoso",
config_store_creation_parameters={
"identity": {
"type": "SystemAssigned, UserAssigned",
"userAssignedIdentities": {
"/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {}
},
},
"location": "westus",
"sku": {"name": "Standard"},
"tags": {"myTag": "myTagValue"},
},
).result()
print(response)
# x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.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 armappconfiguration_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration/v2"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json
func ExampleConfigurationStoresClient_BeginCreate_configurationStoresCreateWithIdentity() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armappconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewConfigurationStoresClient().BeginCreate(ctx, "myResourceGroup", "contoso", armappconfiguration.ConfigurationStore{
Location: to.Ptr("westus"),
Tags: map[string]*string{
"myTag": to.Ptr("myTagValue"),
},
Identity: &armappconfiguration.ResourceIdentity{
Type: to.Ptr(armappconfiguration.IdentityTypeSystemAssignedUserAssigned),
UserAssignedIdentities: map[string]*armappconfiguration.UserIdentity{
"/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {},
},
},
SKU: &armappconfiguration.SKU{
Name: to.Ptr("Standard"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ConfigurationStore = armappconfiguration.ConfigurationStore{
// Name: to.Ptr("contoso"),
// Type: to.Ptr("Microsoft.AppConfiguration/configurationStores"),
// ID: to.Ptr("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso"),
// Location: to.Ptr("westus"),
// Tags: map[string]*string{
// "myTag": to.Ptr("myTagValue"),
// },
// Identity: &armappconfiguration.ResourceIdentity{
// Type: to.Ptr(armappconfiguration.IdentityTypeSystemAssignedUserAssigned),
// PrincipalID: to.Ptr("AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA"),
// TenantID: to.Ptr("BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB"),
// UserAssignedIdentities: map[string]*armappconfiguration.UserIdentity{
// "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": &armappconfiguration.UserIdentity{
// ClientID: to.Ptr("CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC"),
// PrincipalID: to.Ptr("DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD"),
// },
// },
// },
// Properties: &armappconfiguration.ConfigurationStoreProperties{
// CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()),
// DisableLocalAuth: to.Ptr(false),
// Encryption: &armappconfiguration.EncryptionProperties{
// KeyVaultProperties: &armappconfiguration.KeyVaultProperties{
// },
// },
// Endpoint: to.Ptr("https://contoso.azconfig.io"),
// PrivateEndpointConnections: []*armappconfiguration.PrivateEndpointConnectionReference{
// },
// ProvisioningState: to.Ptr(armappconfiguration.ProvisioningStateSucceeded),
// },
// SKU: &armappconfiguration.SKU{
// Name: to.Ptr("Standard"),
// },
// SystemData: &armappconfiguration.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()),
// CreatedBy: to.Ptr("foo@contoso.com"),
// CreatedByType: to.Ptr(armappconfiguration.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()),
// LastModifiedBy: to.Ptr("foo@contoso.com"),
// LastModifiedByType: to.Ptr(armappconfiguration.CreatedByTypeUser),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Creates a configuration store with the specified parameters.
*
* @summary Creates a configuration store with the specified parameters.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json
*/
async function configurationStoresCreateWithIdentity() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const configStoreCreationParameters = {
identity: {
type: "SystemAssigned, UserAssigned",
userAssignedIdentities: {
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2":
{},
},
},
location: "westus",
sku: { name: "Standard" },
tags: { myTag: "myTagValue" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginCreateAndWait(
resourceGroupName,
configStoreName,
configStoreCreationParameters
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.AppConfiguration;
using Azure.ResourceManager.AppConfiguration.Models;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json
// this example is just showing the usage of "ConfigurationStores_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
string subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
string resourceGroupName = "myResourceGroup";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
// get the collection of this AppConfigurationStoreResource
AppConfigurationStoreCollection collection = resourceGroupResource.GetAppConfigurationStores();
// invoke the operation
string configStoreName = "contoso";
AppConfigurationStoreData data = new AppConfigurationStoreData(new AzureLocation("westus"), new AppConfigurationSku("Standard"))
{
Identity = new ManagedServiceIdentity("SystemAssigned, UserAssigned")
{
UserAssignedIdentities =
{
[new ResourceIdentifier("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2")] = new UserAssignedIdentity(),
},
},
Tags =
{
["myTag"] = "myTagValue",
},
};
ArmOperation<AppConfigurationStoreResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configStoreName, data);
AppConfigurationStoreResource result = lro.Value;
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
AppConfigurationStoreData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
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
{
"type": "Microsoft.AppConfiguration/configurationStores",
"properties": {
"provisioningState": "Succeeded",
"creationDate": "2018-04-24T16:30:55+00:00",
"endpoint": "https://contoso.azconfig.io",
"encryption": {
"keyVaultProperties": {
"keyIdentifier": null,
"identityClientId": null
}
},
"disableLocalAuth": false,
"privateEndpointConnections": []
},
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
},
"sku": {
"name": "Standard"
},
"identity": {
"principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA",
"tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB",
"type": "SystemAssigned, UserAssigned",
"userAssignedIdentities": {
"/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {
"clientId": "CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC",
"principalId": "DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD"
}
}
},
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso",
"name": "contoso",
"location": "westus",
"tags": {
"myTag": "myTagValue"
}
}
{
"type": "Microsoft.AppConfiguration/configurationStores",
"properties": {
"provisioningState": "Creating",
"creationDate": "2018-04-24T16:30:55+00:00",
"endpoint": "https://contoso.azconfig.io",
"encryption": {
"keyVaultProperties": {
"keyIdentifier": null,
"identityClientId": null
}
},
"disableLocalAuth": false,
"privateEndpointConnections": []
},
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
},
"sku": {
"name": "Standard"
},
"identity": {
"principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA",
"tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB",
"type": "SystemAssigned, UserAssigned",
"userAssignedIdentities": {
"/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {
"clientId": "CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC",
"principalId": "DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD"
}
}
},
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso",
"name": "contoso",
"location": "westus",
"tags": {
"myTag": "myTagValue"
}
}
ConfigurationStores_Create_With_Local_Auth_Disabled
Sample Request
PUT https://management.azure.com/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso?api-version=2023-03-01
{
"location": "westus",
"sku": {
"name": "Standard"
},
"properties": {
"disableLocalAuth": true
}
}
import com.azure.resourcemanager.appconfiguration.models.Sku;
import java.util.HashMap;
import java.util.Map;
/** Samples for ConfigurationStores Create. */
public final class Main {
/*
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
*/
/**
* Sample code: ConfigurationStores_Create_With_Local_Auth_Disabled.
*
* @param manager Entry point to AppConfigurationManager.
*/
public static void configurationStoresCreateWithLocalAuthDisabled(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
manager
.configurationStores()
.define("contoso")
.withRegion("westus")
.withExistingResourceGroup("myResourceGroup")
.withSku(new Sku().withName("Standard"))
.withDisableLocalAuth(true)
.create();
}
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
for (int i = 0; i < inputs.length; i += 2) {
String key = (String) inputs[i];
T value = (T) inputs[i + 1];
map.put(key, value);
}
return map;
}
}
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.appconfiguration import AppConfigurationManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-appconfiguration
# USAGE
python configuration_stores_create_with_local_auth_disabled.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 = AppConfigurationManagementClient(
credential=DefaultAzureCredential(),
subscription_id="c80fb759-c965-4c6a-9110-9b2b2d038882",
)
response = client.configuration_stores.begin_create(
resource_group_name="myResourceGroup",
config_store_name="contoso",
config_store_creation_parameters={
"location": "westus",
"properties": {"disableLocalAuth": True},
"sku": {"name": "Standard"},
},
).result()
print(response)
# x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.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 armappconfiguration_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration/v2"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1f22d4dbd99b0fe347ad79e79d4eb1ed44a87291/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
func ExampleConfigurationStoresClient_BeginCreate_configurationStoresCreateWithLocalAuthDisabled() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armappconfiguration.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewConfigurationStoresClient().BeginCreate(ctx, "myResourceGroup", "contoso", armappconfiguration.ConfigurationStore{
Location: to.Ptr("westus"),
Properties: &armappconfiguration.ConfigurationStoreProperties{
DisableLocalAuth: to.Ptr(true),
},
SKU: &armappconfiguration.SKU{
Name: to.Ptr("Standard"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ConfigurationStore = armappconfiguration.ConfigurationStore{
// Name: to.Ptr("contoso"),
// Type: to.Ptr("Microsoft.AppConfiguration/configurationStores"),
// ID: to.Ptr("/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso"),
// Location: to.Ptr("westus"),
// Tags: map[string]*string{
// },
// Properties: &armappconfiguration.ConfigurationStoreProperties{
// CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()),
// DisableLocalAuth: to.Ptr(true),
// Encryption: &armappconfiguration.EncryptionProperties{
// KeyVaultProperties: &armappconfiguration.KeyVaultProperties{
// },
// },
// Endpoint: to.Ptr("https://contoso.azconfig.io"),
// PrivateEndpointConnections: []*armappconfiguration.PrivateEndpointConnectionReference{
// },
// ProvisioningState: to.Ptr(armappconfiguration.ProvisioningStateSucceeded),
// },
// SKU: &armappconfiguration.SKU{
// Name: to.Ptr("Standard"),
// },
// SystemData: &armappconfiguration.SystemData{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()),
// CreatedBy: to.Ptr("foo@contoso.com"),
// CreatedByType: to.Ptr(armappconfiguration.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-24T16:30:55.000Z"); return t}()),
// LastModifiedBy: to.Ptr("foo@contoso.com"),
// LastModifiedByType: to.Ptr(armappconfiguration.CreatedByTypeUser),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Creates a configuration store with the specified parameters.
*
* @summary Creates a configuration store with the specified parameters.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
*/
async function configurationStoresCreateWithLocalAuthDisabled() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const configStoreCreationParameters = {
disableLocalAuth: true,
location: "westus",
sku: { name: "Standard" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginCreateAndWait(
resourceGroupName,
configStoreName,
configStoreCreationParameters
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.AppConfiguration;
using Azure.ResourceManager.AppConfiguration.Models;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
// this example is just showing the usage of "ConfigurationStores_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
string subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
string resourceGroupName = "myResourceGroup";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
// get the collection of this AppConfigurationStoreResource
AppConfigurationStoreCollection collection = resourceGroupResource.GetAppConfigurationStores();
// invoke the operation
string configStoreName = "contoso";
AppConfigurationStoreData data = new AppConfigurationStoreData(new AzureLocation("westus"), new AppConfigurationSku("Standard"))
{
DisableLocalAuth = true,
};
ArmOperation<AppConfigurationStoreResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configStoreName, data);
AppConfigurationStoreResource result = lro.Value;
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
AppConfigurationStoreData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
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
{
"type": "Microsoft.AppConfiguration/configurationStores",
"properties": {
"provisioningState": "Succeeded",
"creationDate": "2018-04-24T16:30:55+00:00",
"endpoint": "https://contoso.azconfig.io",
"encryption": {
"keyVaultProperties": {
"keyIdentifier": null,
"identityClientId": null
}
},
"disableLocalAuth": true,
"privateEndpointConnections": []
},
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
},
"sku": {
"name": "Standard"
},
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso",
"name": "contoso",
"location": "westus",
"tags": {}
}
{
"type": "Microsoft.AppConfiguration/configurationStores",
"properties": {
"provisioningState": "Creating",
"creationDate": "2018-04-24T16:30:55+00:00",
"endpoint": "https://contoso.azconfig.io",
"encryption": {
"keyVaultProperties": {
"keyIdentifier": null,
"identityClientId": null
}
},
"disableLocalAuth": true,
"privateEndpointConnections": []
},
"systemData": {
"createdBy": "foo@contoso.com",
"createdByType": "User",
"createdAt": "2018-04-24T16:30:55+00:00",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2018-04-24T16:30:55+00:00"
},
"sku": {
"name": "Standard"
},
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/myResourceGroup/providers/Microsoft.AppConfiguration/configurationStores/contoso",
"name": "contoso",
"location": "westus",
"tags": {}
}
定义
ActionsRequired
除基本工作流之外所需的任何操作 (批准/拒绝/断开连接)
名称 |
类型 |
说明 |
None
|
string
|
|
Recreate
|
string
|
|
ConfigurationStore
配置存储以及所有资源属性。 配置存储将具有开始使用它的所有信息。
名称 |
类型 |
默认值 |
说明 |
id
|
string
|
|
资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
identity
|
ResourceIdentity
|
|
托管标识信息(如果已配置)。
|
location
|
string
|
|
资源所在的地理位置
|
name
|
string
|
|
资源的名称
|
properties.createMode
|
CreateMode
|
|
指示是否需要恢复配置存储区。
|
properties.creationDate
|
string
|
|
配置存储的创建日期。
|
properties.disableLocalAuth
|
boolean
|
False
|
禁用除 AAD 身份验证以外的所有身份验证方法。
|
properties.enablePurgeProtection
|
boolean
|
False
|
指定是否为此配置存储区启用清除防护的属性。
|
properties.encryption
|
EncryptionProperties
|
|
配置存储的加密设置。
|
properties.endpoint
|
string
|
|
将在其中提供配置存储 API 的 DNS 终结点。
|
properties.privateEndpointConnections
|
PrivateEndpointConnectionReference[]
|
|
为此资源设置的专用终结点连接的列表。
|
properties.provisioningState
|
ProvisioningState
|
|
配置存储的预配状态。
|
properties.publicNetworkAccess
|
PublicNetworkAccess
|
|
启用专用终结点时,控制来自公用网络的数据平面流量的权限。
|
properties.softDeleteRetentionInDays
|
integer
|
7
|
软删除配置存储时将保留该存储的时间(以天为单位)。
|
sku
|
Sku
|
|
配置存储的 SKU。
|
systemData
|
systemData
|
|
资源系统元数据。
|
tags
|
object
|
|
资源标记。
|
type
|
string
|
|
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”
|
ConnectionStatus
专用链接服务连接状态。
名称 |
类型 |
说明 |
Approved
|
string
|
|
Disconnected
|
string
|
|
Pending
|
string
|
|
Rejected
|
string
|
|
createdByType
创建资源的标识类型。
名称 |
类型 |
说明 |
Application
|
string
|
|
Key
|
string
|
|
ManagedIdentity
|
string
|
|
User
|
string
|
|
CreateMode
指示是否需要恢复配置存储区。
名称 |
类型 |
说明 |
Default
|
string
|
|
Recover
|
string
|
|
EncryptionProperties
配置存储的加密设置。
ErrorAdditionalInfo
资源管理错误附加信息。
名称 |
类型 |
说明 |
info
|
object
|
其他信息。
|
type
|
string
|
其他信息类型。
|
ErrorDetails
错误的详细信息。
名称 |
类型 |
说明 |
additionalInfo
|
ErrorAdditionalInfo[]
|
错误附加信息。
|
code
|
string
|
错误代码。
|
message
|
string
|
指示操作失败原因的错误消息。
|
ErrorResponse
错误响应指示服务无法处理传入请求。 错误消息中提供了原因。
IdentityType
使用的托管标识的类型。 类型“SystemAssigned, UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将删除任何标识。
名称 |
类型 |
说明 |
None
|
string
|
|
SystemAssigned
|
string
|
|
SystemAssigned, UserAssigned
|
string
|
|
UserAssigned
|
string
|
|
KeyVaultProperties
有关配置存储区密钥保管库加密的设置。
名称 |
类型 |
说明 |
identityClientId
|
string
|
将用于访问密钥保管库的标识的客户端 ID。
|
keyIdentifier
|
string
|
用于加密数据的密钥保管库密钥的 URI。
|
PrivateEndpoint
连接所属的专用终结点。
名称 |
类型 |
说明 |
id
|
string
|
专用终结点的资源 ID
|
PrivateEndpointConnectionReference
对相关专用终结点连接的引用。
PrivateLinkServiceConnectionState
专用链接服务连接的状态。
ProvisioningState
配置存储的预配状态。
名称 |
类型 |
说明 |
Canceled
|
string
|
|
Creating
|
string
|
|
Deleting
|
string
|
|
Failed
|
string
|
|
Succeeded
|
string
|
|
Updating
|
string
|
|
PublicNetworkAccess
启用专用终结点时,控制来自公用网络的数据平面流量的权限。
名称 |
类型 |
说明 |
Disabled
|
string
|
|
Enabled
|
string
|
|
ResourceIdentity
可与资源关联的标识。
名称 |
类型 |
说明 |
principalId
|
string
|
标识的主体 ID。 此属性仅针对系统分配的标识提供。
|
tenantId
|
string
|
与资源的标识关联的租户 ID。 此属性仅针对系统分配的标识提供。
|
type
|
IdentityType
|
使用的托管标识的类型。 类型“SystemAssigned, UserAssigned”包括隐式创建的标识和一组用户分配的标识。 类型“None”将删除任何标识。
|
userAssignedIdentities
|
<string,
UserIdentity>
|
与资源关联的用户分配标识的列表。 用户分配的标识字典密钥将是 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。
|
Sku
描述配置存储 SKU。
名称 |
类型 |
说明 |
name
|
string
|
配置存储的 SKU 名称。
|
systemData
与资源的创建和上次修改相关的元数据。
名称 |
类型 |
说明 |
createdAt
|
string
|
资源创建时间戳 (UTC) 。
|
createdBy
|
string
|
创建资源的标识。
|
createdByType
|
createdByType
|
创建资源的标识类型。
|
lastModifiedAt
|
string
|
资源上次修改的时间戳 (UTC)
|
lastModifiedBy
|
string
|
上次修改资源的标识。
|
lastModifiedByType
|
createdByType
|
上次修改资源的标识类型。
|
UserIdentity
由服务的用户管理的资源标识。
名称 |
类型 |
说明 |
clientId
|
string
|
用户分配的标识的客户端 ID。
|
principalId
|
string
|
用户分配的标识的主体 ID。
|