diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md
index 624190551fcf..0979d793b583 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2022-01-13)
+
+- Azure Resource Manager ApplicationInsights client library for Java. This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-01-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md
index 58ebfa109319..73c85b881540 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ApplicationInsights client library for Java.
-This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2021-11-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-01-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-applicationinsights
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md
index 19b4a74d4fa7..1cccb5f417b2 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md
@@ -739,7 +739,7 @@ import java.util.Map;
/** Samples for Components CreateOrUpdate. */
public final class ComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsCreate.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsCreate.json
*/
/**
* Sample code: ComponentCreate.
@@ -757,11 +757,13 @@ public final class ComponentsCreateOrUpdateSamples {
.withApplicationType(ApplicationType.WEB)
.withFlowType(FlowType.BLUEFIELD)
.withRequestSource(RequestSource.REST)
+ .withWorkspaceResourceId(
+ "/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace")
.create();
}
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdate.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsUpdate.json
*/
/**
* Sample code: ComponentUpdate.
@@ -801,7 +803,7 @@ import com.azure.core.util.Context;
/** Samples for Components Delete. */
public final class ComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsDelete.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsDelete.json
*/
/**
* Sample code: ComponentsDelete.
@@ -823,7 +825,7 @@ import com.azure.core.util.Context;
/** Samples for Components GetByResourceGroup. */
public final class ComponentsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsGet.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsGet.json
*/
/**
* Sample code: ComponentGet.
@@ -844,7 +846,7 @@ import com.azure.core.util.Context;
/** Samples for Components GetPurgeStatus. */
public final class ComponentsGetPurgeStatusSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurgeStatus.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsPurgeStatus.json
*/
/**
* Sample code: ComponentPurge.
@@ -869,7 +871,7 @@ import com.azure.core.util.Context;
/** Samples for Components List. */
public final class ComponentsListSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsList.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsList.json
*/
/**
* Sample code: ComponentsList.json.
@@ -891,7 +893,7 @@ import com.azure.core.util.Context;
/** Samples for Components ListByResourceGroup. */
public final class ComponentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsListByResourceGroup.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsListByResourceGroup.json
*/
/**
* Sample code: ComponentListByResourceGroup.
@@ -916,7 +918,7 @@ import java.util.Arrays;
/** Samples for Components Purge. */
public final class ComponentsPurgeSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurge.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsPurge.json
*/
/**
* Sample code: ComponentPurge.
@@ -955,7 +957,7 @@ import java.util.Map;
/** Samples for Components UpdateTags. */
public final class ComponentsUpdateTagsSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdateTagsOnly.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsUpdateTagsOnly.json
*/
/**
* Sample code: ComponentUpdateTagsOnly.
@@ -1471,7 +1473,7 @@ import com.azure.core.util.Context;
/** Samples for LiveToken Get. */
public final class LiveTokenGetSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-06-02-preview/examples/LiveTokenGet.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/examples/LiveTokenGet.json
*/
/**
* Sample code: Get live token for resource.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
index 1a3bf1b1f05a..4057d8ad4921 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for ApplicationInsights Management
- This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2021-11-01.
+ This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2022-01-11.
https://github.com/Azure/azure-sdk-for-java
@@ -39,6 +39,9 @@
UTF-8
true
+ false
+
+
@@ -52,4 +55,8 @@
1.5.1
+
+
+
+
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java
index fb335a56f2b6..118534def81b 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java
@@ -248,7 +248,7 @@ public ApplicationInsightsManager authenticate(TokenCredential credential, Azure
.append("-")
.append("com.azure.resourcemanager.applicationinsights")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java
index f7cb867215a1..6524e9492a70 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java
@@ -32,6 +32,12 @@ public final class ApplicationInsightsComponentInner extends ComponentsResource
@JsonProperty(value = "kind", required = true)
private String kind;
+ /*
+ * Resource etag
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
/*
* Properties that define an Application Insights component resource.
*/
@@ -60,6 +66,26 @@ public ApplicationInsightsComponentInner withKind(String kind) {
return this;
}
+ /**
+ * Get the etag property: Resource etag.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: Resource etag.
+ *
+ * @param etag the etag value to set.
+ * @return the ApplicationInsightsComponentInner object itself.
+ */
+ public ApplicationInsightsComponentInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
/**
* Get the innerProperties property: Properties that define an Application Insights component resource.
*
@@ -102,6 +128,15 @@ public String appId() {
return this.innerProperties() == null ? null : this.innerProperties().appId();
}
+ /**
+ * Get the name property: Application name.
+ *
+ * @return the name value.
+ */
+ public String namePropertiesName() {
+ return this.innerProperties() == null ? null : this.innerProperties().name();
+ }
+
/**
* Get the applicationType property: Type of application being monitored.
*
@@ -353,6 +388,42 @@ public ApplicationInsightsComponentInner withImmediatePurgeDataOn30Days(Boolean
return this;
}
+ /**
+ * Get the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested
+ * to. This property is required to create an application with this API version. Applications from older versions
+ * will not have this property.
+ *
+ * @return the workspaceResourceId value.
+ */
+ public String workspaceResourceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().workspaceResourceId();
+ }
+
+ /**
+ * Set the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested
+ * to. This property is required to create an application with this API version. Applications from older versions
+ * will not have this property.
+ *
+ * @param workspaceResourceId the workspaceResourceId value to set.
+ * @return the ApplicationInsightsComponentInner object itself.
+ */
+ public ApplicationInsightsComponentInner withWorkspaceResourceId(String workspaceResourceId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ApplicationInsightsComponentProperties();
+ }
+ this.innerProperties().withWorkspaceResourceId(workspaceResourceId);
+ return this;
+ }
+
+ /**
+ * Get the laMigrationDate property: The date which the component got migrated to LA, in ISO 8601 format.
+ *
+ * @return the laMigrationDate value.
+ */
+ public OffsetDateTime laMigrationDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().laMigrationDate();
+ }
+
/**
* Get the privateLinkScopedResources property: List of linked private link scope resources.
*
@@ -435,6 +506,55 @@ public ApplicationInsightsComponentInner withIngestionMode(IngestionMode ingesti
return this;
}
+ /**
+ * Get the disableLocalAuth property: Disable Non-AAD based Auth.
+ *
+ * @return the disableLocalAuth value.
+ */
+ public Boolean disableLocalAuth() {
+ return this.innerProperties() == null ? null : this.innerProperties().disableLocalAuth();
+ }
+
+ /**
+ * Set the disableLocalAuth property: Disable Non-AAD based Auth.
+ *
+ * @param disableLocalAuth the disableLocalAuth value to set.
+ * @return the ApplicationInsightsComponentInner object itself.
+ */
+ public ApplicationInsightsComponentInner withDisableLocalAuth(Boolean disableLocalAuth) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ApplicationInsightsComponentProperties();
+ }
+ this.innerProperties().withDisableLocalAuth(disableLocalAuth);
+ return this;
+ }
+
+ /**
+ * Get the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler
+ * and debugger.
+ *
+ * @return the forceCustomerStorageForProfiler value.
+ */
+ public Boolean forceCustomerStorageForProfiler() {
+ return this.innerProperties() == null ? null : this.innerProperties().forceCustomerStorageForProfiler();
+ }
+
+ /**
+ * Set the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler
+ * and debugger.
+ *
+ * @param forceCustomerStorageForProfiler the forceCustomerStorageForProfiler value to set.
+ * @return the ApplicationInsightsComponentInner object itself.
+ */
+ public ApplicationInsightsComponentInner withForceCustomerStorageForProfiler(
+ Boolean forceCustomerStorageForProfiler) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ApplicationInsightsComponentProperties();
+ }
+ this.innerProperties().withForceCustomerStorageForProfiler(forceCustomerStorageForProfiler);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java
index a2c31f62359d..d57d29efe85a 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java
@@ -35,6 +35,12 @@ public final class ApplicationInsightsComponentProperties {
@JsonProperty(value = "AppId", access = JsonProperty.Access.WRITE_ONLY)
private String appId;
+ /*
+ * Application name.
+ */
+ @JsonProperty(value = "Name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
/*
* Type of application being monitored.
*/
@@ -132,6 +138,21 @@ public final class ApplicationInsightsComponentProperties {
@JsonProperty(value = "ImmediatePurgeDataOn30Days")
private Boolean immediatePurgeDataOn30Days;
+ /*
+ * Resource Id of the log analytics workspace which the data will be
+ * ingested to. This property is required to create an application with
+ * this API version. Applications from older versions will not have this
+ * property.
+ */
+ @JsonProperty(value = "WorkspaceResourceId")
+ private String workspaceResourceId;
+
+ /*
+ * The date which the component got migrated to LA, in ISO 8601 format.
+ */
+ @JsonProperty(value = "LaMigrationDate", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime laMigrationDate;
+
/*
* List of linked private link scope resources.
*/
@@ -156,6 +177,19 @@ public final class ApplicationInsightsComponentProperties {
@JsonProperty(value = "IngestionMode")
private IngestionMode ingestionMode;
+ /*
+ * Disable Non-AAD based Auth.
+ */
+ @JsonProperty(value = "DisableLocalAuth")
+ private Boolean disableLocalAuth;
+
+ /*
+ * Force users to create their own storage account for profiler and
+ * debugger.
+ */
+ @JsonProperty(value = "ForceCustomerStorageForProfiler")
+ private Boolean forceCustomerStorageForProfiler;
+
/**
* Get the applicationId property: The unique ID of your application. This field mirrors the 'Name' field and cannot
* be changed.
@@ -175,6 +209,15 @@ public String appId() {
return this.appId;
}
+ /**
+ * Get the name property: Application name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
/**
* Get the applicationType property: Type of application being monitored.
*
@@ -402,6 +445,39 @@ public ApplicationInsightsComponentProperties withImmediatePurgeDataOn30Days(Boo
return this;
}
+ /**
+ * Get the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested
+ * to. This property is required to create an application with this API version. Applications from older versions
+ * will not have this property.
+ *
+ * @return the workspaceResourceId value.
+ */
+ public String workspaceResourceId() {
+ return this.workspaceResourceId;
+ }
+
+ /**
+ * Set the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested
+ * to. This property is required to create an application with this API version. Applications from older versions
+ * will not have this property.
+ *
+ * @param workspaceResourceId the workspaceResourceId value to set.
+ * @return the ApplicationInsightsComponentProperties object itself.
+ */
+ public ApplicationInsightsComponentProperties withWorkspaceResourceId(String workspaceResourceId) {
+ this.workspaceResourceId = workspaceResourceId;
+ return this;
+ }
+
+ /**
+ * Get the laMigrationDate property: The date which the component got migrated to LA, in ISO 8601 format.
+ *
+ * @return the laMigrationDate value.
+ */
+ public OffsetDateTime laMigrationDate() {
+ return this.laMigrationDate;
+ }
+
/**
* Get the privateLinkScopedResources property: List of linked private link scope resources.
*
@@ -475,6 +551,49 @@ public ApplicationInsightsComponentProperties withIngestionMode(IngestionMode in
return this;
}
+ /**
+ * Get the disableLocalAuth property: Disable Non-AAD based Auth.
+ *
+ * @return the disableLocalAuth value.
+ */
+ public Boolean disableLocalAuth() {
+ return this.disableLocalAuth;
+ }
+
+ /**
+ * Set the disableLocalAuth property: Disable Non-AAD based Auth.
+ *
+ * @param disableLocalAuth the disableLocalAuth value to set.
+ * @return the ApplicationInsightsComponentProperties object itself.
+ */
+ public ApplicationInsightsComponentProperties withDisableLocalAuth(Boolean disableLocalAuth) {
+ this.disableLocalAuth = disableLocalAuth;
+ return this;
+ }
+
+ /**
+ * Get the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler
+ * and debugger.
+ *
+ * @return the forceCustomerStorageForProfiler value.
+ */
+ public Boolean forceCustomerStorageForProfiler() {
+ return this.forceCustomerStorageForProfiler;
+ }
+
+ /**
+ * Set the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler
+ * and debugger.
+ *
+ * @param forceCustomerStorageForProfiler the forceCustomerStorageForProfiler value to set.
+ * @return the ApplicationInsightsComponentProperties object itself.
+ */
+ public ApplicationInsightsComponentProperties withForceCustomerStorageForProfiler(
+ Boolean forceCustomerStorageForProfiler) {
+ this.forceCustomerStorageForProfiler = forceCustomerStorageForProfiler;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsComponentImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsComponentImpl.java
index ecbf4137f838..511e0d44f8be 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsComponentImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsComponentImpl.java
@@ -60,6 +60,10 @@ public String kind() {
return this.innerModel().kind();
}
+ public String etag() {
+ return this.innerModel().etag();
+ }
+
public String applicationId() {
return this.innerModel().applicationId();
}
@@ -68,6 +72,10 @@ public String appId() {
return this.innerModel().appId();
}
+ public String namePropertiesName() {
+ return this.innerModel().namePropertiesName();
+ }
+
public ApplicationType applicationType() {
return this.innerModel().applicationType();
}
@@ -124,6 +132,14 @@ public Boolean immediatePurgeDataOn30Days() {
return this.innerModel().immediatePurgeDataOn30Days();
}
+ public String workspaceResourceId() {
+ return this.innerModel().workspaceResourceId();
+ }
+
+ public OffsetDateTime laMigrationDate() {
+ return this.innerModel().laMigrationDate();
+ }
+
public List privateLinkScopedResources() {
List inner = this.innerModel().privateLinkScopedResources();
if (inner != null) {
@@ -145,6 +161,14 @@ public IngestionMode ingestionMode() {
return this.innerModel().ingestionMode();
}
+ public Boolean disableLocalAuth() {
+ return this.innerModel().disableLocalAuth();
+ }
+
+ public Boolean forceCustomerStorageForProfiler() {
+ return this.innerModel().forceCustomerStorageForProfiler();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -286,6 +310,11 @@ public ApplicationInsightsComponentImpl withTags(Map tags) {
}
}
+ public ApplicationInsightsComponentImpl withEtag(String etag) {
+ this.innerModel().withEtag(etag);
+ return this;
+ }
+
public ApplicationInsightsComponentImpl withApplicationType(ApplicationType applicationType) {
this.innerModel().withApplicationType(applicationType);
return this;
@@ -326,6 +355,11 @@ public ApplicationInsightsComponentImpl withImmediatePurgeDataOn30Days(Boolean i
return this;
}
+ public ApplicationInsightsComponentImpl withWorkspaceResourceId(String workspaceResourceId) {
+ this.innerModel().withWorkspaceResourceId(workspaceResourceId);
+ return this;
+ }
+
public ApplicationInsightsComponentImpl withPublicNetworkAccessForIngestion(
PublicNetworkAccessType publicNetworkAccessForIngestion) {
this.innerModel().withPublicNetworkAccessForIngestion(publicNetworkAccessForIngestion);
@@ -343,6 +377,17 @@ public ApplicationInsightsComponentImpl withIngestionMode(IngestionMode ingestio
return this;
}
+ public ApplicationInsightsComponentImpl withDisableLocalAuth(Boolean disableLocalAuth) {
+ this.innerModel().withDisableLocalAuth(disableLocalAuth);
+ return this;
+ }
+
+ public ApplicationInsightsComponentImpl withForceCustomerStorageForProfiler(
+ Boolean forceCustomerStorageForProfiler) {
+ this.innerModel().withForceCustomerStorageForProfiler(forceCustomerStorageForProfiler);
+ return this;
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsClientImpl.java
index ae70131c5f22..6f041295eaa2 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsClientImpl.java
@@ -93,7 +93,7 @@ Mono> listByResourceGroup(
@HeaderParam("Accept") String accept,
Context context);
- @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
+ @Headers({"Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
+ "/{resourceName}")
@@ -105,6 +105,7 @@ Mono> delete(
@QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceName") String resourceName,
+ @HeaderParam("Accept") String accept,
Context context);
@Headers({"Content-Type: application/json"})
@@ -126,7 +127,7 @@ Mono> getByResourceGroup(
@Put(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
+ "/{resourceName}")
- @ExpectedResponses({200, 201})
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createOrUpdate(
@HostParam("$host") String endpoint,
@@ -142,7 +143,7 @@ Mono> createOrUpdate(
@Patch(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
+ "/{resourceName}")
- @ExpectedResponses({200, 201})
+ @ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> updateTags(
@HostParam("$host") String endpoint,
@@ -228,7 +229,7 @@ private Mono> listSinglePageAsy
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -270,7 +271,7 @@ private Mono> listSinglePageAsy
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -367,7 +368,7 @@ private Mono> listByResourceGro
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -421,7 +422,7 @@ private Mono> listByResourceGro
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -538,7 +539,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
if (resourceName == null) {
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
+ final String accept = "application/json";
return FluxUtil
.withContext(
context ->
@@ -549,6 +551,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
apiVersion,
this.client.getSubscriptionId(),
resourceName,
+ accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -586,7 +589,8 @@ private Mono> deleteWithResponseAsync(
if (resourceName == null) {
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
+ final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.delete(
@@ -595,6 +599,7 @@ private Mono> deleteWithResponseAsync(
apiVersion,
this.client.getSubscriptionId(),
resourceName,
+ accept,
context);
}
@@ -675,7 +680,7 @@ private Mono> getByResourceGroupWith
if (resourceName == null) {
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -725,7 +730,7 @@ private Mono> getByResourceGroupWith
if (resourceName == null) {
return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -835,7 +840,7 @@ private Mono> createOrUpdateWithResp
} else {
insightProperties.validate();
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -897,7 +902,7 @@ private Mono> createOrUpdateWithResp
} else {
insightProperties.validate();
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1016,7 +1021,7 @@ private Mono> updateTagsWithResponse
} else {
componentTags.validate();
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1073,7 +1078,7 @@ private Mono> updateTagsWithResponse
} else {
componentTags.validate();
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1191,7 +1196,7 @@ private Mono> purgeWithResponseAsync(
} else {
body.validate();
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1253,7 +1258,7 @@ private Mono> purgeWithResponseAsync(
} else {
body.validate();
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1378,7 +1383,7 @@ private Mono> getPurgeStatusWithResp
if (purgeId == null) {
return Mono.error(new IllegalArgumentException("Parameter purgeId is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1433,7 +1438,7 @@ private Mono> getPurgeStatusWithResp
if (purgeId == null) {
return Mono.error(new IllegalArgumentException("Parameter purgeId is required and cannot be null."));
}
- final String apiVersion = "2018-05-01-preview";
+ final String apiVersion = "2020-02-02";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensClientImpl.java
index 82786da8d264..15f5e8b5cfc9 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensClientImpl.java
@@ -55,7 +55,7 @@ public final class LiveTokensClientImpl implements LiveTokensClient {
@ServiceInterface(name = "ApplicationInsightsM")
private interface LiveTokensService {
@Headers({"Content-Type: application/json"})
- @Post("/{resourceUri}/providers/microsoft.insights/generatelivetoken")
+ @Post("/{resourceUri}/providers/Microsoft.Insights/generatelivetoken")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -86,7 +86,7 @@ private Mono> getWithResponseAsync(String resou
if (resourceUri == null) {
return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
}
- final String apiVersion = "2020-06-02-preview";
+ final String apiVersion = "2021-10-14";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), resourceUri, apiVersion, accept, context))
@@ -114,7 +114,7 @@ private Mono> getWithResponseAsync(String resou
if (resourceUri == null) {
return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null."));
}
- final String apiVersion = "2020-06-02-preview";
+ final String apiVersion = "2021-10-14";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), resourceUri, apiVersion, accept, context);
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ApplicationInsightsComponent.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ApplicationInsightsComponent.java
index b9bd70f90baa..80c311981e63 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ApplicationInsightsComponent.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ApplicationInsightsComponent.java
@@ -57,6 +57,13 @@ public interface ApplicationInsightsComponent {
*/
String kind();
+ /**
+ * Gets the etag property: Resource etag.
+ *
+ * @return the etag value.
+ */
+ String etag();
+
/**
* Gets the applicationId property: The unique ID of your application. This field mirrors the 'Name' field and
* cannot be changed.
@@ -72,6 +79,13 @@ public interface ApplicationInsightsComponent {
*/
String appId();
+ /**
+ * Gets the namePropertiesName property: Application name.
+ *
+ * @return the namePropertiesName value.
+ */
+ String namePropertiesName();
+
/**
* Gets the applicationType property: Type of application being monitored.
*
@@ -179,6 +193,22 @@ public interface ApplicationInsightsComponent {
*/
Boolean immediatePurgeDataOn30Days();
+ /**
+ * Gets the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested
+ * to. This property is required to create an application with this API version. Applications from older versions
+ * will not have this property.
+ *
+ * @return the workspaceResourceId value.
+ */
+ String workspaceResourceId();
+
+ /**
+ * Gets the laMigrationDate property: The date which the component got migrated to LA, in ISO 8601 format.
+ *
+ * @return the laMigrationDate value.
+ */
+ OffsetDateTime laMigrationDate();
+
/**
* Gets the privateLinkScopedResources property: List of linked private link scope resources.
*
@@ -208,6 +238,21 @@ public interface ApplicationInsightsComponent {
*/
IngestionMode ingestionMode();
+ /**
+ * Gets the disableLocalAuth property: Disable Non-AAD based Auth.
+ *
+ * @return the disableLocalAuth value.
+ */
+ Boolean disableLocalAuth();
+
+ /**
+ * Gets the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler
+ * and debugger.
+ *
+ * @return the forceCustomerStorageForProfiler value.
+ */
+ Boolean forceCustomerStorageForProfiler();
+
/**
* Gets the region of the resource.
*
@@ -291,6 +336,7 @@ interface WithKind {
*/
interface WithCreate
extends DefinitionStages.WithTags,
+ DefinitionStages.WithEtag,
DefinitionStages.WithApplicationType,
DefinitionStages.WithFlowType,
DefinitionStages.WithRequestSource,
@@ -299,9 +345,12 @@ interface WithCreate
DefinitionStages.WithRetentionInDays,
DefinitionStages.WithDisableIpMasking,
DefinitionStages.WithImmediatePurgeDataOn30Days,
+ DefinitionStages.WithWorkspaceResourceId,
DefinitionStages.WithPublicNetworkAccessForIngestion,
DefinitionStages.WithPublicNetworkAccessForQuery,
- DefinitionStages.WithIngestionMode {
+ DefinitionStages.WithIngestionMode,
+ DefinitionStages.WithDisableLocalAuth,
+ DefinitionStages.WithForceCustomerStorageForProfiler {
/**
* Executes the create request.
*
@@ -327,6 +376,16 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+ /** The stage of the ApplicationInsightsComponent definition allowing to specify etag. */
+ interface WithEtag {
+ /**
+ * Specifies the etag property: Resource etag.
+ *
+ * @param etag Resource etag.
+ * @return the next definition stage.
+ */
+ WithCreate withEtag(String etag);
+ }
/** The stage of the ApplicationInsightsComponent definition allowing to specify applicationType. */
interface WithApplicationType {
/**
@@ -416,6 +475,20 @@ interface WithImmediatePurgeDataOn30Days {
*/
WithCreate withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days);
}
+ /** The stage of the ApplicationInsightsComponent definition allowing to specify workspaceResourceId. */
+ interface WithWorkspaceResourceId {
+ /**
+ * Specifies the workspaceResourceId property: Resource Id of the log analytics workspace which the data
+ * will be ingested to. This property is required to create an application with this API version.
+ * Applications from older versions will not have this property..
+ *
+ * @param workspaceResourceId Resource Id of the log analytics workspace which the data will be ingested to.
+ * This property is required to create an application with this API version. Applications from older
+ * versions will not have this property.
+ * @return the next definition stage.
+ */
+ WithCreate withWorkspaceResourceId(String workspaceResourceId);
+ }
/**
* The stage of the ApplicationInsightsComponent definition allowing to specify publicNetworkAccessForIngestion.
*/
@@ -451,6 +524,30 @@ interface WithIngestionMode {
*/
WithCreate withIngestionMode(IngestionMode ingestionMode);
}
+ /** The stage of the ApplicationInsightsComponent definition allowing to specify disableLocalAuth. */
+ interface WithDisableLocalAuth {
+ /**
+ * Specifies the disableLocalAuth property: Disable Non-AAD based Auth..
+ *
+ * @param disableLocalAuth Disable Non-AAD based Auth.
+ * @return the next definition stage.
+ */
+ WithCreate withDisableLocalAuth(Boolean disableLocalAuth);
+ }
+ /**
+ * The stage of the ApplicationInsightsComponent definition allowing to specify forceCustomerStorageForProfiler.
+ */
+ interface WithForceCustomerStorageForProfiler {
+ /**
+ * Specifies the forceCustomerStorageForProfiler property: Force users to create their own storage account
+ * for profiler and debugger..
+ *
+ * @param forceCustomerStorageForProfiler Force users to create their own storage account for profiler and
+ * debugger.
+ * @return the next definition stage.
+ */
+ WithCreate withForceCustomerStorageForProfiler(Boolean forceCustomerStorageForProfiler);
+ }
}
/**
* Begins update for the ApplicationInsightsComponent resource.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ItemType.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ItemType.java
index 15e0b0334845..64256a7bf303 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ItemType.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ItemType.java
@@ -10,18 +10,18 @@
/** Defines values for ItemType. */
public final class ItemType extends ExpandableStringEnum {
+ /** Static value none for ItemType. */
+ public static final ItemType NONE = fromString("none");
+
/** Static value query for ItemType. */
public static final ItemType QUERY = fromString("query");
- /** Static value function for ItemType. */
- public static final ItemType FUNCTION = fromString("function");
-
- /** Static value folder for ItemType. */
- public static final ItemType FOLDER = fromString("folder");
-
/** Static value recent for ItemType. */
public static final ItemType RECENT = fromString("recent");
+ /** Static value function for ItemType. */
+ public static final ItemType FUNCTION = fromString("function");
+
/**
* Creates or finds a ItemType from its string representation.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsCreateOrUpdateSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsCreateOrUpdateSamples.java
index 4dfec1da0031..fc07f848b721 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsCreateOrUpdateSamples.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsCreateOrUpdateSamples.java
@@ -13,7 +13,7 @@
/** Samples for Components CreateOrUpdate. */
public final class ComponentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsCreate.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsCreate.json
*/
/**
* Sample code: ComponentCreate.
@@ -31,11 +31,13 @@ public static void componentCreate(
.withApplicationType(ApplicationType.WEB)
.withFlowType(FlowType.BLUEFIELD)
.withRequestSource(RequestSource.REST)
+ .withWorkspaceResourceId(
+ "/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace")
.create();
}
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdate.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsUpdate.json
*/
/**
* Sample code: ComponentUpdate.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsDeleteSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsDeleteSamples.java
index a92f61bb32f6..99ba92a5429c 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsDeleteSamples.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for Components Delete. */
public final class ComponentsDeleteSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsDelete.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsDelete.json
*/
/**
* Sample code: ComponentsDelete.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsGetByResourceGroupSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsGetByResourceGroupSamples.java
index 3e5d0a16e961..9c6ac8880edf 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsGetByResourceGroupSamples.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsGetByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for Components GetByResourceGroup. */
public final class ComponentsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsGet.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsGet.json
*/
/**
* Sample code: ComponentGet.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsGetPurgeStatusSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsGetPurgeStatusSamples.java
index 45523ea979e8..8eb057c00ebe 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsGetPurgeStatusSamples.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsGetPurgeStatusSamples.java
@@ -9,7 +9,7 @@
/** Samples for Components GetPurgeStatus. */
public final class ComponentsGetPurgeStatusSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurgeStatus.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsPurgeStatus.json
*/
/**
* Sample code: ComponentPurge.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsListByResourceGroupSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsListByResourceGroupSamples.java
index 8964d42427ed..952524931d9d 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsListByResourceGroupSamples.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsListByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for Components ListByResourceGroup. */
public final class ComponentsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsListByResourceGroup.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsListByResourceGroup.json
*/
/**
* Sample code: ComponentListByResourceGroup.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsListSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsListSamples.java
index ed60c42109e9..3bd26e38d253 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsListSamples.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Components List. */
public final class ComponentsListSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsList.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsList.json
*/
/**
* Sample code: ComponentsList.json.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsPurgeSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsPurgeSamples.java
index 3baa461c33ac..fc48388a179d 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsPurgeSamples.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsPurgeSamples.java
@@ -12,7 +12,7 @@
/** Samples for Components Purge. */
public final class ComponentsPurgeSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurge.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsPurge.json
*/
/**
* Sample code: ComponentPurge.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsUpdateTagsSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsUpdateTagsSamples.java
index 04ed7a03236e..d25e567287f2 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsUpdateTagsSamples.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/ComponentsUpdateTagsSamples.java
@@ -12,7 +12,7 @@
/** Samples for Components UpdateTags. */
public final class ComponentsUpdateTagsSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdateTagsOnly.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsUpdateTagsOnly.json
*/
/**
* Sample code: ComponentUpdateTagsOnly.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/LiveTokenGetSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/LiveTokenGetSamples.java
index 0f9071a0d860..284dc2755b35 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/LiveTokenGetSamples.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/LiveTokenGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for LiveToken Get. */
public final class LiveTokenGetSamples {
/*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-06-02-preview/examples/LiveTokenGet.json
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/examples/LiveTokenGet.json
*/
/**
* Sample code: Get live token for resource.