Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IPAM, VNV, AVNM Security Admin spec and change Vnet swagger spec #30271

Closed
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
34 changes: 34 additions & 0 deletions .github/workflows/protected-files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Protected Files

on: pull_request

jobs:
protected-files:
name: Protected Files

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
# Required since "HEAD^" is passed to Get-ChangedFiles
fetch-depth: 2

- name: Detect changes to protected files
run: |
. eng/scripts/ChangedFiles-Functions.ps1

$protectedFiles = @("package.json", "package-lock.json")
$changedFiles = @(Get-ChangedFiles -baseCommitish HEAD^ -targetCommitish HEAD -diffFilter "")
$matchedFiles = @($protectedFiles | Where-Object { $changedFiles -contains $_})

if ($matchedFiles.Count -gt 0) {
foreach ($file in $matchedFiles) {
Write-Output "::error file=$file::File '$file' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections."
}
exit 1
}
else {
Write-Output "::notice::No changes to protected files: [$($protectedFiles -join ', ')]"
}
shell: pwsh
4 changes: 2 additions & 2 deletions specification/azurefleet/AzureFleet.Management/fleet.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ model Fleet is TrackedResource<FleetProperties> {
@doc("The name of the Compute Fleet")
@key("fleetName")
@segment("fleets")
@pattern("^[^_\\W][\\w-._]{0,79}(?<![-.])$")
@pattern("^[^_\\W][\\w\\-._]{0,79}(?<![-.])$")
@path
name: string;

Expand Down Expand Up @@ -237,7 +237,7 @@ interface Fleets {
...ProviderNamespace<Fleet>,
...ResourceNameParameter<
Fleet,
NamePattern = "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
NamePattern = "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
>,
): ArmResponse<VirtualMachineScaleSetListResult> | ErrorResponse;
}
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
"description": "The name of the Compute Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
}
],
"responses": {
Expand Down Expand Up @@ -243,7 +243,7 @@
"description": "The name of the Compute Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
},
{
"name": "resource",
Expand Down Expand Up @@ -317,7 +317,7 @@
"description": "The name of the Compute Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
},
{
"name": "properties",
Expand Down Expand Up @@ -392,7 +392,7 @@
"description": "The name of the Compute Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
}
],
"responses": {
Expand Down Expand Up @@ -457,7 +457,7 @@
"description": "The name of the Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
"description": "The name of the Compute Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
}
],
"responses": {
Expand Down Expand Up @@ -231,7 +231,7 @@
"description": "The name of the Compute Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
},
{
"name": "resource",
Expand Down Expand Up @@ -305,7 +305,7 @@
"description": "The name of the Compute Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
},
{
"name": "properties",
Expand Down Expand Up @@ -377,7 +377,7 @@
"description": "The name of the Compute Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
}
],
"responses": {
Expand Down Expand Up @@ -439,7 +439,7 @@
"description": "The name of the Fleet",
"required": true,
"type": "string",
"pattern": "^[^_\\W][\\w-._]{0,79}(?<![-.])$"
"pattern": "^[^_\\W][\\w\\-._]{0,79}(?<![-.])$"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2024-05-01-preview",
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM"
},
"responses": {
"200": {
"body": {
"name": "default",
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/AttestationStatus",
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/attestationStatus/default",
"properties": {
"attestSecureBootEnabled": "Disabled",
"attestationCertValidated": "Invalid",
"bootIntegrityValidated": "Invalid",
"errorMessage": "Attestation token has invalid signature",
"healthStatus": "Unhealthy",
"linuxKernelVersion": "1.0.0.0",
"timestamp": "2023/11/10 9:48"
}
}
}
},
"operationId": "AttestationStatuses_Get",
"title": "GetAttestationStatus"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"parameters": {
"api-version": "2024-05-01-preview",
"galleryImageName": "test-gallery-image",
"resource": {
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"location": "West US2",
"properties": {
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"imagePath": "C:\\test.vhdx",
"osType": "Linux"
}
},
"resourceGroupName": "test-rg",
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
},
"responses": {
"200": {
"body": {
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
"location": "West US2",
"properties": {
"cloudInitDataSource": "NoCloud",
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"hyperVGeneration": "V2",
"osType": "Linux",
"provisioningState": "Accepted",
"status": {
"downloadStatus": {
"downloadSizeInMB": 9383
},
"progressPercentage": 100,
"provisioningStatus": {
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
"status": "Succeeded"
}
},
"version": {
"properties": {
"storageProfile": {
"osDiskImage": {
"sizeInMB": 30270
}
}
}
}
}
}
},
"201": {
"body": {
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325",
"location": "West US2",
"properties": {
"cloudInitDataSource": "NoCloud",
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"hyperVGeneration": "V2",
"osType": "Linux",
"provisioningState": "Succeeded",
"status": {
"downloadStatus": {
"downloadSizeInMB": 9383
},
"progressPercentage": 100,
"provisioningStatus": {
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
"status": "Succeeded"
}
},
"version": {
"properties": {
"storageProfile": {
"osDiskImage": {
"sizeInMB": 30270
}
}
}
}
}
}
}
},
"operationId": "GalleryImages_CreateOrUpdate",
"title": "PutGalleryImage"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"parameters": {
"api-version": "2024-05-01-preview",
"galleryImageName": "test-gallery-image",
"resource": {
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"location": "West US2",
"properties": {
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"sourceVirtualMachineId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachineInstance/test-vm",
"osType": "Windows"
}
},
"resourceGroupName": "test-rg",
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
},
"responses": {
"200": {
"body": {
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
"location": "West US2",
"properties": {
"cloudInitDataSource": "NoCloud",
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"hyperVGeneration": "V2",
"osType": "Linux",
"provisioningState": "Accepted",
"status": {
"downloadStatus": {
"downloadSizeInMB": 9383
},
"progressPercentage": 100,
"provisioningStatus": {
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
"status": "Succeeded"
}
},
"version": {
"properties": {
"storageProfile": {
"osDiskImage": {
"sizeInMB": 30270
}
}
}
}
}
}
},
"201": {
"body": {
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325",
"location": "West US2",
"properties": {
"cloudInitDataSource": "NoCloud",
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"hyperVGeneration": "V2",
"osType": "Linux",
"provisioningState": "Succeeded",
"status": {
"downloadStatus": {
"downloadSizeInMB": 9383
},
"progressPercentage": 100,
"provisioningStatus": {
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
"status": "Succeeded"
}
},
"version": {
"properties": {
"storageProfile": {
"osDiskImage": {
"sizeInMB": 30270
}
}
}
}
}
}
}
},
"operationId": "GalleryImages_CreateOrUpdate_FromVM",
"title": "PutGalleryImage_FromVM"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2024-05-01-preview",
"galleryImageName": "test-gallery-image",
"resourceGroupName": "test-rg",
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
},
"responses": {
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
},
"operationId": "GalleryImages_Delete",
"title": "DeleteGalleryImage"
}
Loading
Loading