Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the valid provisioning states for an Azure Deployment

I am writing some automation using the azure java sdk that takes action depending on the provisioning state of an Azure Template Deployment. However, I do not know all the valid values for the provisioning state.

Specifically in the azure java sdk provisioningState is just a String.

package com.microsoft.azure.management.resources

public interface Deployment extends
    Indexable,
    Refreshable<Deployment>,
    Updatable<Deployment.Update>,
    HasInner<DeploymentExtendedInner>,
    HasManager<ResourceManager>,
    HasName {
  /**
   * @return the state of the provisioning process of the resources being deployed
   */
  String provisioningState();
}

I suspect this is because different services have different Deployment implementations and different ProvisioningState classes.

Which ProvisioningState class should I look at to determine the valid states for an Azure Template deployment?

like image 741
ilooner Avatar asked Nov 15 '25 09:11

ilooner


2 Answers

May be you could refer to ProvisioningState Class.

Fields

CANCELED, CREATING, DELETING, FAILED, SUCCEEDED, UPDATING

Inheritance java.lang.Object->ExpandableStringEnum<T>->ProvisioningState. And the ExpandableStringEnum<T> class belongs to com.microsoft.azure.management.resources.fluentcore.arm.

like image 106
Joy Wang Avatar answered Nov 17 '25 21:11

Joy Wang


There used to be a ProvisioningState Enum in the azure-mgmt-resources SDK (<1.0.0) but it is not the case in the latest versions. Anyways, it is a good indicator to get started: https://www.javadoc.io/doc/com.microsoft.azure/azure-mgmt-resources/0.9.8/com/microsoft/azure/management/resources/models/ProvisioningState.html

like image 30
Diepie Avatar answered Nov 17 '25 21:11

Diepie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!