You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (cluster_resource!=None) and (cluster_resource.kind.lower() ==consts.Provisioned_Cluster_Kind):
431
+
if (cluster_resource!=None) and (cluster_resource.kind!=None) and (cluster_resource.kind.lower() ==consts.Provisioned_Cluster_Kind):
432
432
ifazure_hybrid_benefitisnotNone:
433
433
raiseInvalidArgumentValueError("Updating the 'azure hybrid benefit' property of a Provisioned Cluster is not supported from the Connected Cluster CLI. Please use the 'az aksarc update' CLI command.\nhttps://learn.microsoft.com/en-us/cli/azure/aksarc?view=azure-cli-latest#az-aksarc-update")
if (preview_cluster_resource!=None) and (preview_cluster_resource.kind.lower() ==consts.Provisioned_Cluster_Kind):
898
+
if (preview_cluster_resource!=None) and (preview_cluster_resource.kind!=None) and (preview_cluster_resource.kind.lower() ==consts.Provisioned_Cluster_Kind):
899
899
raiseInvalidArgumentValueError("Deleting a Provisioned Cluster is not supported from the Connected Cluster CLI. Please use the 'az aksarc delete' CLI command.\nhttps://learn.microsoft.com/en-us/cli/azure/aksarc?view=azure-cli-latest#az-aksarc-delete")
if (connected_cluster!=None) and (connected_cluster.kind.lower() ==consts.Provisioned_Cluster_Kind):
1051
+
if (connected_cluster!=None) and (connected_cluster.kind!=None) and (connected_cluster.kind.lower() ==consts.Provisioned_Cluster_Kind):
1052
1052
raiseInvalidArgumentValueError("Updating a Provisioned Cluster is not supported from the Connected Cluster CLI. Please use the 'az aksarc update' CLI command. https://learn.microsoft.com/en-us/cli/azure/aksarc?view=azure-cli-latest#az-aksarc-update")
1053
1053
1054
1054
# Set preview client as most of the patchable fields are available in preview api-version
if (connected_cluster!=None) and (connected_cluster.kind.lower() ==consts.Provisioned_Cluster_Kind):
1200
+
if (connected_cluster!=None) and (connected_cluster.kind!=None) and (connected_cluster.kind.lower() ==consts.Provisioned_Cluster_Kind):
1201
1201
raiseInvalidArgumentValueError("Upgrading a Provisioned Cluster is not supported from the Connected Cluster CLI. Please use the 'az aksarc upgrade' CLI command. https://learn.microsoft.com/en-us/cli/azure/aksarc?view=azure-cli-latest#az-aksarc-upgrade")
1202
1202
1203
1203
logger.warning("This operation might take a while...\n")
if (connected_cluster!=None) and (connected_cluster.kind.lower() ==consts.Provisioned_Cluster_Kind):
1451
+
if (connected_cluster!=None) and (connected_cluster.kind!=None) and (connected_cluster.kind.lower() ==consts.Provisioned_Cluster_Kind):
1452
1452
raiseInvalidArgumentValueError("Enable feature of a Provisioned Cluster is not supported from the Connected Cluster CLI. For information on how to enable a feature on a Provisioned Cluster using a cluster extension, please refer to: https://learn.microsoft.com/en-us/azure/aks/deploy-extensions-az-cli")
if (connected_cluster!=None) and (connected_cluster.kind.lower() ==consts.Provisioned_Cluster_Kind):
1581
+
if (connected_cluster!=None) and (connected_cluster.kind!=None) and (connected_cluster.kind.lower() ==consts.Provisioned_Cluster_Kind):
1582
1582
raiseInvalidArgumentValueError("Disable feature of a Provisioned Cluster is not supported from the Connected Cluster CLI. For information on how to disable a feature on a Provisioned Cluster using a cluster extension, please refer to: https://learn.microsoft.com/en-us/azure/aks/deploy-extensions-az-cli")
1583
1583
1584
1584
logger.warning("This operation might take a while...\n")
0 commit comments