特定のOrchestrator Kubernetesクラスタのリソースグループとクラスタを持つ紺碧コンテナを作成したいとします。Rest APIを使用したAzureコンテナサービス
は、私はその可能CLIを使用して知っているが、私は、この使用してAzureの休憩APIのここに与えられたリンクからコンテナサービスの
docs.microsoft.com/en-us/rest/api/container-service/をしたいですcontainerservices/createorupdate
私のアプリをAADに登録し、必要な権限を与えました。リンク
PUTのmanagement.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}あたり以下のようにAPIに
ガットアクセストークン及び製造要求?APIバージョン= 2017年1月31日 が、私は、リクエストボディに何もないときに我々は、このエラーを取得理解
{
"error": {
"code": "InvalidResource"
"message": "The resource definition is invalid."
}
}
ように私はエラーを取得しています。
ここで私の本当の質問は、リソースグループとAPI要求を使用しているクラスタでコンテナサービスを作成する場合です。
{
"code": "BadRequest",
"message": "An error has occurred in subscription <subscriptionid>, resourceGroup: tobeDeletedResourceGroup request: OrchestratorType has unknown orchestrator: ."
}
を取得
リクエストボディ
{
"id": "myCluster",
"name": "myCluster",
"type": "Microsoft.ContainerService/containerServices",
"location": "southindia",
"tags": {
"tag": "test"
},
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes"
},
"servicePrincipalProfile": {
"clientId": "<clientid>,
"secret": "<secret>"
},
"masterProfile": {
"count": 1,
"dnsPrefix": "testabc"
},
"agentPoolProfiles": {
"name": "agentPool1234",
"count": 2,
"vmSize": "Standard_A1",
"dnsPrefix": "testabcagents"
},
"linuxProfile": {
"adminUsername": "kubeadmin",
"ssh": {
"publicKeys": [
{
"keyData": "sshkey"
}
]
}
}
}
}
Responseはこの
あなたのput bodyが無効です – 4c74356b41
@ 4c74356b41 Swarm、DCOS、またはCustom –
@ 4c74356b41のようなオーケストレーターで、同じエラーが発生しています。あなたは精巧なビットお願いしますか?またはサンプルのPUTボディがある場合は、私に連絡してください... –