this issue happens in the inconsistency between src code and generated sample.
in src code, consecutive flatten will be ignore and we only handle the first layer flattening. But in generated sample, it will enable all flatten transitions which will fails the build:sample script
export interface Extension extends ProxyResource {
/**
* Provisioning state of the Extension proxy resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ProvisioningState;
/**
* Aggregate state of Arc Extensions across the nodes in this HCI cluster.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly aggregateState?: ExtensionAggregateState;
/**
* State of Arc Extension in each of the nodes.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly perNodeExtensionDetails?: PerNodeExtensionState[];
/**
* Indicates if the extension is managed by azure or the user.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly managedBy?: ExtensionManagedBy;
/** How the extension handler should be forced to update even if the extension configuration has not changed. */
forceUpdateTag?: string;
/** The name of the extension handler publisher. */
publisher?: string;
/** Specifies the type of the extension; an example is "CustomScriptExtension". */
typePropertiesExtensionParametersType?: string;
/** Specifies the version of the script handler. Latest version would be used if not specified. */
typeHandlerVersion?: string;
/** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */
autoUpgradeMinorVersion?: boolean;
/** Json formatted public settings for the extension. */
settings?: Record<string, unknown>;
/** Protected settings (may contain secrets). */
protectedSettings?: Record<string, unknown>;
/** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. */
enableAutomaticUpgrade?: boolean;
}
export interface Extension extends ProxyResource {
/** Provisioning state of the Extension proxy resource. Indicates the current lifecycle status of the resource, such as whether it's being created, updated, deleted, or has encountered an error. */
readonly provisioningState?: ProvisioningState;
/** Parameters specific to this extension type. */
extensionParameters?: ExtensionParameters;
/** Aggregate state of Arc Extensions across the nodes in this HCI cluster. This reflects the overall status of the extension deployment and operation across all nodes. */
readonly aggregateState?: ExtensionAggregateState;
/** State of Arc Extension in each of the nodes. */
readonly perNodeExtensionDetails?: PerNodeExtensionState[];
/** Indicates if the extension is managed by Azure or the user. This determines who controls the deployment and lifecycle of the extension. */
readonly managedBy?: ExtensionManagedBy;
}
export interface ExtensionParameters {
/** How the extension handler should be forced to update even if the extension configuration has not changed. */
forceUpdateTag?: string;
/** The name of the extension handler publisher. */
publisher?: string;
/** Specifies the type of the extension; an example is "CustomScriptExtension". */
type?: string;
/** Specifies the version of the script handler. Latest version would be used if not specified. */
typeHandlerVersion?: string;
/** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */
autoUpgradeMinorVersion?: boolean;
/** Json formatted public settings for the extension. */
settings?: any;
/** Protected settings (may contain secrets). */
protectedSettings?: any;
/** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. */
enableAutomaticUpgrade?: boolean;
}
this issue happens in the inconsistency between src code and generated sample.
in src code, consecutive flatten will be ignore and we only handle the first layer flattening. But in generated sample, it will enable all flatten transitions which will fails the build:sample script