Managed Environments Storages - Create Or Update
ManagedEnvironment için depolama oluşturun veya güncelleştirin.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}?api-version=2025-07-01
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
environment
|
path | True |
string |
Ortamın adı. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarsız. |
|
storage
|
path | True |
string |
Depolamanın adı. |
|
subscription
|
path | True |
string minLength: 1 |
Hedef aboneliğin kimliği. |
|
api-version
|
query | True |
string minLength: 1 |
Bu işlem için kullanılacak API sürümü. |
İstek Gövdesi
| Name | Tür | Description |
|---|---|---|
| properties |
Depolama özellikleri |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
Tamam |
|
| 201 Created |
Oluşturuldu |
|
| Other Status Codes |
Yaygın hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Akışı
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
| Name | Description |
|---|---|
| user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
| Create or update environments storage |
| Create or update environments storage for NFS Azure file |
Create or update environments storage
Örnek isteği
PUT https://management.azure.com/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1?api-version=2025-07-01
{
"properties": {
"azureFile": {
"accountName": "account1",
"accountKey": "key",
"shareName": "share1",
"accessMode": "ReadOnly"
}
}
}
Örnek yanıt
{}
{
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1",
"name": "jlaw-demo1",
"type": "Microsoft.App/managedEnvironments/storages",
"properties": {
"azureFile": {
"accountName": "account1",
"shareName": "share1",
"accessMode": "ReadOnly",
"accountKeyVaultProperties": {
"identity": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity",
"keyVaultUrl": "https://myvault.vault.azure.net/secrets/mysecret"
}
}
}
}
Create or update environments storage for NFS Azure file
Örnek isteği
PUT https://management.azure.com/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1?api-version=2025-07-01
{
"properties": {
"nfsAzureFile": {
"server": "server1",
"shareName": "share1",
"accessMode": "ReadOnly"
}
}
}
Örnek yanıt
{
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/managedEnv/storages/jlaw-demo1",
"name": "jlaw-demo1",
"type": "Microsoft.App/managedEnvironments/storages",
"properties": {
"nfsAzureFile": {
"server": "server1",
"shareName": "share1",
"accessMode": "ReadOnly"
}
}
}
{}
Tanımlar
| Name | Description |
|---|---|
|
Access |
Depolama için erişim modu |
|
Azure |
Azure Dosya Özellikleri. |
|
created |
Kaynağı oluşturan kimliğin türü. |
|
Default |
App Service hata yanıtı. |
| Details |
Ayrıntılar veya hata |
| Error |
Hata modeli. |
|
Managed |
managedEnvironment için depolama kaynağı. |
|
Nfs |
NFS Azure Dosya Özellikleri. |
| Properties |
Depolama özellikleri |
|
Secret |
Key Vault'ta depolanan bir gizli dizinin özellikleri. |
|
system |
Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler. |
AccessMode
Depolama için erişim modu
| Değer | Description |
|---|---|
| ReadOnly | |
| ReadWrite |
AzureFileProperties
Azure Dosya Özellikleri.
| Name | Tür | Description |
|---|---|---|
| accessMode |
Depolama için erişim modu |
|
| accountKey |
string |
Azure dosyası için depolama hesabı anahtarı. |
| accountKeyVaultProperties |
Azure Key Vault gizli dizisi olarak depolanan depolama hesabı anahtarı. |
|
| accountName |
string |
Azure dosyası için depolama hesabı adı. |
| shareName |
string |
Azure dosya paylaşımı adı. |
createdByType
Kaynağı oluşturan kimliğin türü.
| Değer | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DefaultErrorResponse
App Service hata yanıtı.
| Name | Tür | Description |
|---|---|---|
| error |
Hata modeli. |
Details
Ayrıntılar veya hata
| Name | Tür | Description |
|---|---|---|
| code |
string |
Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize. |
| message |
string |
Ayrıntılı hata açıklaması ve hata ayıklama bilgileri. |
| target |
string |
Ayrıntılı hata açıklaması ve hata ayıklama bilgileri. |
Error
Hata modeli.
| Name | Tür | Description |
|---|---|---|
| code |
string |
Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize. |
| details |
Details[] |
Ayrıntılar veya hata |
| innererror |
string |
Hata ayıklamak için daha fazla bilgi. |
| message |
string |
Ayrıntılı hata açıklaması ve hata ayıklama bilgileri. |
| target |
string |
Ayrıntılı hata açıklaması ve hata ayıklama bilgileri. |
ManagedEnvironmentStorage
managedEnvironment için depolama kaynağı.
| Name | Tür | Description |
|---|---|---|
| id |
string (arm-id) |
Kaynağın tam kaynak kimliği. Örneğin, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| name |
string |
Kaynağın adı |
| properties |
Depolama özellikleri |
|
| systemData |
createdBy ve modifiedBy bilgilerini içeren Azure Resource Manager meta verileri. |
|
| type |
string |
Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts" |
NfsAzureFileProperties
NFS Azure Dosya Özellikleri.
| Name | Tür | Description |
|---|---|---|
| accessMode |
Depolama için erişim modu |
|
| server |
string |
NFS azure dosyası sunucusu. Azure depolama hesabı sunucu adresini belirtin. |
| shareName |
string |
NFS Azure dosya paylaşımı adı. |
Properties
Depolama özellikleri
| Name | Tür | Description |
|---|---|---|
| azureFile |
Azure dosya özellikleri |
|
| nfsAzureFile |
NFS Azure dosya özellikleri |
SecretKeyVaultProperties
Key Vault'ta depolanan bir gizli dizinin özellikleri.
| Name | Tür | Description |
|---|---|---|
| identity |
string |
Azure Key Vault ile kimlik doğrulaması için yönetilen kimliğin kaynak kimliği veya sistem tarafından atanan bir kimlik kullanmak için Sistem. |
| keyVaultUrl |
string |
Azure Key Vault gizli dizisine işaret eden URL. |
systemData
Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.
| Name | Tür | Description |
|---|---|---|
| createdAt |
string (date-time) |
Kaynak oluşturma (UTC) zaman damgası. |
| createdBy |
string |
Kaynağı oluşturan kimlik. |
| createdByType |
Kaynağı oluşturan kimliğin türü. |
|
| lastModifiedAt |
string (date-time) |
Kaynağın son değişikliğinin zaman damgası (UTC) |
| lastModifiedBy |
string |
Kaynağı en son değiştiren kimlik. |
| lastModifiedByType |
Kaynağı en son değiştiren kimlik türü. |