Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{
"title": "ManagedOps_CreateOrUpdate",
"operationId": "ManagedOps_CreateOrUpdate",
"parameters": {
"api-version": "2025-07-28-preview",
"subscriptionId": "11809CA1-E126-4017-945E-AA795CD5C5A9",
"managedOpsName": "default",
"resource": {
"properties": {
"sku": {
"name": "ManagedOps",
"tier": "Basic"
Comment on lines +10 to +12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this property should be readonly in typespec, and service team has removed this from example in #40076

Do we have a check to verify if examples have readonly properties in pipeline?

cc @MaryGao

},
"desiredConfiguration": {
"changeTrackingAndInventory": {
"logAnalyticsWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/00000000-0000-0000-0000-000000000000-Default"
},
"azureMonitorInsights": {
"azureMonitorWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/example"
},
"userAssignedManagedIdentityId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myManagedIdentity"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/providers/Microsoft.ManagedOps/managedOps/default",
"name": "default",
"type": "Microsoft.ManagedOps/managedOps",
"systemData": {
"createdBy": "myUser",
"createdByType": "User",
"createdAt": "2023-05-19T00:28:48.610Z",
"lastModifiedBy": "myUser",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-05-19T00:28:48.610Z"
},
"properties": {
"sku": {
"name": "ManagedOps",
"tier": "Basic"
},
"desiredConfiguration": {
"changeTrackingAndInventory": {
"logAnalyticsWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/00000000-0000-0000-0000-000000000000-Default"
},
"azureMonitorInsights": {
"azureMonitorWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/example"
},
"userAssignedManagedIdentityId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myManagedIdentity",
"defenderForServers": "Disable",
"defenderCspm": "Disable"
},
"provisioningState": "Provisioning",
"policyAssignmentProperties": {
"policyInitiativeAssignmentId": "/subscriptions/aa4c0cba-5c0a-4751-a5e3-ea28e50afeeb/providers/microsoft.authorization/policyassignments/test-edition-policy-2"
},
"services": {
"changeTrackingAndInventory": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ct-dcr131878407",
"enablementStatus": "Enabled"
},
"azureMonitorInsights": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ami-dcr131878407",
"enablementStatus": "Enabled"
},
"azureUpdateManager": {
"enablementStatus": "Enabled"
},
"azurePolicyAndMachineConfiguration": {
"enablementStatus": "Enabled"
},
"defenderForServers": {
"enablementStatus": "Enabled"
},
"defenderCspm": {
"enablementStatus": "Enabled"
}
}
}
}
},
"201": {
"headers": {
"Azure-AsyncOperation": "https://contoso.com/operationstatus"
},
"body": {
"id": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/providers/Microsoft.ManagedOps/managedOps/default",
"name": "default",
"type": "Microsoft.ManagedOps/managedOps",
"systemData": {
"createdBy": "myUser",
"createdByType": "User",
"createdAt": "2023-05-19T00:28:48.610Z",
"lastModifiedBy": "myUser",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-05-19T00:28:48.610Z"
},
"properties": {
"sku": {
"name": "ManagedOps",
"tier": "Basic"
},
"desiredConfiguration": {
"changeTrackingAndInventory": {
"logAnalyticsWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/00000000-0000-0000-0000-000000000000-Default"
},
"azureMonitorInsights": {
"azureMonitorWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/example"
},
"userAssignedManagedIdentityId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myManagedIdentity",
"defenderForServers": "Enable",
"defenderCspm": "Enable"
},
"provisioningState": "Provisioning",
"policyAssignmentProperties": {
"policyInitiativeAssignmentId": "/subscriptions/aa4c0cba-5c0a-4751-a5e3-ea28e50afeeb/providers/microsoft.authorization/policyassignments/test-edition-policy-2"
},
"services": {
"changeTrackingAndInventory": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ct-dcr131878407",
"enablementStatus": "Enabled"
},
"azureMonitorInsights": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ami-dcr131878407",
"enablementStatus": "Enabled"
},
"azureUpdateManager": {
"enablementStatus": "Enabled"
},
"azurePolicyAndMachineConfiguration": {
"enablementStatus": "Enabled"
},
"defenderForServers": {
"enablementStatus": "Enabled"
},
"defenderCspm": {
"enablementStatus": "Enabled"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "ManagedOps_Delete",
"operationId": "ManagedOps_Delete",
"parameters": {
"api-version": "2025-07-28-preview",
"subscriptionId": "11809CA1-E126-4017-945E-AA795CD5C5A9",
"managedOpsName": "default"
},
"responses": {
"202": {
"headers": {
"location": "https://contoso.com/operationstatus",
"Azure-AsyncOperation": "https://contoso.com/operationstatus"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"title": "ManagedOps_Get",
"operationId": "ManagedOps_Get",
"parameters": {
"api-version": "2025-07-28-preview",
"subscriptionId": "11809CA1-E126-4017-945E-AA795CD5C5A9",
"managedOpsName": "default"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/providers/Microsoft.ManagedOps/managedOps/default",
"name": "default",
"type": "Microsoft.ManagedOps/managedOps",
"systemData": {
"createdBy": "myUser",
"createdByType": "User",
"createdAt": "2023-05-19T00:28:48.610Z",
"lastModifiedBy": "myUser",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-05-19T00:28:48.610Z"
},
"properties": {
"sku": {
"name": "ManagedOps",
"tier": "Basic"
},
"desiredConfiguration": {
"changeTrackingAndInventory": {
"logAnalyticsWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/00000000-0000-0000-0000-000000000000-Default"
},
"azureMonitorInsights": {
"azureMonitorWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/example"
},
"userAssignedManagedIdentityId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myManagedIdentity",
"defenderForServers": "Enable",
"defenderCspm": "Enable"
},
"provisioningState": "Provisioning",
"policyAssignmentProperties": {
"policyInitiativeAssignmentId": "/subscriptions/aa4c0cba-5c0a-4751-a5e3-ea28e50afeeb/providers/microsoft.authorization/policyassignments/test-edition-policy-2"
},
"services": {
"changeTrackingAndInventory": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ct-dcr131878407",
"enablementStatus": "Enabled"
},
"azureMonitorInsights": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ami-dcr131878407",
"enablementStatus": "Enabled"
},
"azureUpdateManager": {
"enablementStatus": "Enabled"
},
"azurePolicyAndMachineConfiguration": {
"enablementStatus": "Enabled"
},
"defenderForServers": {
"enablementStatus": "Enabled"
},
"defenderCspm": {
"enablementStatus": "Enabled"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"title": "ManagedOps_List",
"operationId": "ManagedOps_List",
"parameters": {
"api-version": "2025-07-28-preview",
"subscriptionId": "11809CA1-E126-4017-945E-AA795CD5C5A9"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/providers/Microsoft.ManagedOps/managedOps/default",
"name": "default",
"type": "Microsoft.ManagedOps/managedOps",
"systemData": {
"createdBy": "myUser",
"createdByType": "User",
"createdAt": "2023-05-19T00:28:48.610Z",
"lastModifiedBy": "myUser",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-05-19T00:28:48.610Z"
},
"properties": {
"sku": {
"name": "ManagedOps",
"tier": "Basic"
},
"desiredConfiguration": {
"changeTrackingAndInventory": {
"logAnalyticsWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/00000000-0000-0000-0000-000000000000-Default"
},
"azureMonitorInsights": {
"azureMonitorWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/example"
},
"userAssignedManagedIdentityId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myManagedIdentity",
"defenderForServers": "Enable",
"defenderCspm": "Enable"
},
"provisioningState": "Provisioning",
"policyAssignmentProperties": {
"policyInitiativeAssignmentId": "/subscriptions/aa4c0cba-5c0a-4751-a5e3-ea28e50afeeb/providers/microsoft.authorization/policyassignments/test-edition-policy-2"
},
"services": {
"changeTrackingAndInventory": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ct-dcr131878407",
"enablementStatus": "Enabled"
},
"azureMonitorInsights": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ami-dcr131878407",
"enablementStatus": "Enabled"
},
"azureUpdateManager": {
"enablementStatus": "Enabled"
},
"azurePolicyAndMachineConfiguration": {
"enablementStatus": "Enabled"
},
"defenderForServers": {
"enablementStatus": "Enabled"
},
"defenderCspm": {
"enablementStatus": "Enabled"
}
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"title": "ManagedOps_Update",
"operationId": "ManagedOps_Update",
"parameters": {
"api-version": "2025-07-28-preview",
"subscriptionId": "11809CA1-E126-4017-945E-AA795CD5C5A9",
"managedOpsName": "default",
"properties": {}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/providers/Microsoft.ManagedOps/managedOps/default",
"name": "default",
"type": "Microsoft.ManagedOps/managedOps",
"systemData": {
"createdBy": "myUser",
"createdByType": "User",
"createdAt": "2023-05-19T00:28:48.610Z",
"lastModifiedBy": "myUser",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-05-19T00:28:48.610Z"
},
"properties": {
"sku": {
"name": "ManagedOps",
"tier": "Basic"
},
"desiredConfiguration": {
"changeTrackingAndInventory": {
"logAnalyticsWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/00000000-0000-0000-0000-000000000000-Default"
},
"azureMonitorInsights": {
"azureMonitorWorkspaceId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/example"
},
"userAssignedManagedIdentityId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myManagedIdentity",
"defenderForServers": "Enable",
"defenderCspm": "Enable"
},
"provisioningState": "Provisioning",
"policyAssignmentProperties": {
"policyInitiativeAssignmentId": "/subscriptions/aa4c0cba-5c0a-4751-a5e3-ea28e50afeeb/providers/microsoft.authorization/policyassignments/test-edition-policy-2"
},
"services": {
"changeTrackingAndInventory": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ct-dcr131878407",
"enablementStatus": "Enabled"
},
"azureMonitorInsights": {
"dcrId": "/subscriptions/11809CA1-E126-4017-945E-AA795CD5C5A9/resourceGroups/xingftestrg/providers/Microsoft.Insights/dataCollectionRules/ami-dcr131878407",
"enablementStatus": "Enabled"
},
"azureUpdateManager": {
"enablementStatus": "Enabled"
},
"azurePolicyAndMachineConfiguration": {
"enablementStatus": "Enabled"
},
"defenderForServers": {
"enablementStatus": "Enabled"
},
"defenderCspm": {
"enablementStatus": "Enabled"
}
}
}
}
},
"202": {
"headers": {
"location": "https://contoso.com/operationstatus"
}
}
}
}
Loading
Loading