Share via


az managedapp definition

管理 Azure 受控應用程式。

命令

名稱 Description 類型 狀態
az managedapp definition create

建立受控應用程式定義。

核心 GA
az managedapp definition delete

刪除受控應用程式定義。

核心 GA
az managedapp definition list

列出受控應用程式定義。

核心 GA
az managedapp definition show

取得受控應用程式定義。

核心 GA
az managedapp definition update

更新受控應用程式定義。

核心 GA

az managedapp definition create

建立受控應用程式定義。

az managedapp definition create --authorizations
                                --description
                                --display-name
                                --lock-level {CanNotDelete, None, ReadOnly}
                                --name
                                --resource-group
                                [--create-ui-definition]
                                [--deployment-mode {Complete, Incremental}]
                                [--location]
                                [--main-template]
                                [--package-file-uri]
                                [--tags]

範例

建立受控應用程式定義。

az managedapp definition create -g MyResourceGroup -n MyManagedAppDef -l eastus --display-name "MyManagedAppDef" \
    --description "My Managed App Def description" -a "myPrincipalId:myRoleId" --lock-level None \
    --package-file-uri "https://path/to/myPackage.zip"

使用 createUiDefinition 和 mainTemplate 的內嵌值建立受控應用程式定義。

az managedapp definition create -g MyResourceGroup -n MyManagedAppDef -l eastus --display-name "MyManagedAppDef" \
    --description "My Managed App Def description" -a "myPrincipalId:myRoleId" --lock-level None \
    --create-ui-definition @myCreateUiDef.json --main-template @myMainTemplate.json

必要參數

--authorizations -a

以 的格式 <principalId>:<roleDefinitionId> 分隔空間分隔授權組。

--description

受控應用程式定義描述。

--display-name

受控應用程式定義顯示名稱。

--lock-level

鎖定限制的類型。

接受的值: CanNotDelete, None, ReadOnly
--name -n

受控應用程式定義名稱。

--resource-group -g

受控應用程式定義的資源群組。

選擇性參數

--create-ui-definition -c

JSON 格式化字串或具有這類內容之檔案的路徑。

--deployment-mode

受控應用程式部署模式。

接受的值: Complete, Incremental
--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--main-template -t

JSON 格式化字串或具有這類內容之檔案的路徑。

--package-file-uri

受控應用程式定義套件檔案 URI。

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「」 清除現有的標記。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az managedapp definition delete

刪除受控應用程式定義。

az managedapp definition delete [--ids]
                                [--name]
                                [--resource-group]
                                [--subscription]

範例

刪除受控應用程式定義。 (自動產生)

az managedapp definition delete --name MyManagedApplicationDefinition --resource-group MyResourceGroup

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

要刪除之受控應用程式定義的名稱。 必要。

--resource-group -g

受控應用程式定義的資源群組。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az managedapp definition list

列出受控應用程式定義。

az managedapp definition list --resource-group

範例

列出受控應用程式定義。 (自動產生)

az managedapp definition list --resource-group MyResourceGroup

必要參數

--resource-group -g

受控應用程式定義的資源群組。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az managedapp definition show

取得受控應用程式定義。

az managedapp definition show [--ids]
                              [--name]
                              [--resource-group]
                              [--subscription]

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

受控應用程式定義名稱。

--resource-group -g

受控應用程式定義的資源群組。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az managedapp definition update

更新受控應用程式定義。

az managedapp definition update --authorizations
                                --description
                                --display-name
                                --lock-level {CanNotDelete, None, ReadOnly}
                                [--create-ui-definition]
                                [--deployment-mode {Complete, Incremental}]
                                [--ids]
                                [--location]
                                [--main-template]
                                [--name]
                                [--package-file-uri]
                                [--resource-group]
                                [--subscription]
                                [--tags]

範例

更新受控應用程式定義。

az managedapp definition update -g MyResourceGroup -n MyManagedAppDef -l eastus --display-name "MyManagedAppDef" \
    --description "My Managed App Def description" -a "myPrincipalId:myRoleId" --lock-level None \
    --package-file-uri "https://path/to/myPackage.zip"

使用 createUiDefinition 和 mainTemplate 的內嵌值更新受控應用程式定義。

az managedapp definition update -g MyResourceGroup -n MyManagedAppDef -l eastus --display-name "MyManagedAppDef" \
    --description "My Managed App Def description" -a "myPrincipalId:myRoleId" --lock-level None \
    --create-ui-definition @myCreateUiDef.json --main-template @myMainTemplate.json

必要參數

--authorizations -a

以 的格式 <principalId>:<roleDefinitionId> 分隔空間分隔授權組。

--description

受控應用程式定義描述。

--display-name

受控應用程式定義顯示名稱。

--lock-level

鎖定限制的類型。

接受的值: CanNotDelete, None, ReadOnly

選擇性參數

--create-ui-definition -c

JSON 格式化字串或具有這類內容之檔案的路徑。

--deployment-mode

受控應用程式部署模式。

接受的值: Complete, Incremental
--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--location -l

位置。​​ 來自的值: az account list-locations 。 您可以使用 來設定預設位置 az configure --defaults location=<location>

--main-template -t

JSON 格式化字串或具有這類內容之檔案的路徑。

--name -n

受控應用程式定義名稱。

--package-file-uri

受控應用程式定義套件檔案 URI。

--resource-group -g

受控應用程式定義的資源群組。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「」 清除現有的標記。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。