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?
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With