Comments (4)
Thank you for your feedback. Tagging and routing to the team member best able to assist.
from azure-sdk-for-net.
@DeerWangXiaolu the TrafficManagerProfileResource's updateasync doesn't support disable or enable operation that is restrict by service set. but you can achieve the gobal by using the demo code below:
var armClient = new ArmClient(new DefaultAzureCredential());
ResourceIdentifier rid = TrafficManagerProfileResource.CreateResourceIdentifier(AZURE_SUBSCRIPTION_ID, rg, "traficemanagerdemo");
TrafficManagerProfileResource trafficeManagerProfile = armClient.GetTrafficManagerProfileResource(rid);
trafficeManagerProfile = await trafficeManagerProfile.GetAsync();
foreach (var endpoint in trafficeManagerProfile.Data.Endpoints)
{
endpoint.EndpointStatus = TrafficManagerEndpointStatus.Disabled;
}
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(AZURE_SUBSCRIPTION_ID, rg);
ResourceGroupResource resourceGroupResource = armClient.GetResourceGroupResource(resourceGroupResourceId);
TrafficManagerProfileCollection collection = resourceGroupResource.GetTrafficManagerProfiles();
await collection.CreateOrUpdateAsync(WaitUntil.Completed, "traficemanagerdemo", trafficeManagerProfile.Data);
from azure-sdk-for-net.
Hi @DeerWangXiaolu. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-net.
Hi @DeerWangXiaolu, since you haven’t asked that we /unresolve
the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve
to reopen the issue.
from azure-sdk-for-net.
Related Issues (20)
- [BUG] Chat streaming implementation hangs on a 429 response, no async way to access response body HOT 1
- [FEATURE REQ] Add a basic test to verify the plugin generation
- [FEATURE REQ] Set up CI for Azure plugin
- [FEATURE REQ] OpenAI Structured Outputs HOT 1
- [BUG] `AzureOpenAIModelFactory` has disappeared in Azure.AI.OpenAI 2.0.0-betas HOT 1
- [FEATURE REQ] HOT 5
- [BUG] BlobBatchClient.DeleteBlobsAsync fails with "Server failed to authenticate the request" error HOT 2
- Can the FormRecognizer SDK be used when using a container HOT 1
- [BUG] Intermittent 403 authorizationfailure when performing operations with a BlobServiceClient HOT 4
- [email protected]
- Unclear what SubscriptionRuntimeProperties.AccessedAt really means HOT 3
- Deserialization Error in RouteMatrixResultResponse When Error String is Returned Instead of Null HOT 1
- [BUG] ManagedIdentityCredential takes a long time to fail when used in ChainedTokenCredential HOT 8
- [BUG]Some barcodes read successfully by older Azure.AI.FormRecognizer.DocumentAnalysis not recognized by Azure.AI.DocumentIntelligence 1.0.0-beta.3 HOT 5
- Redundant ToArray() call in GetBlobsAsyncCollection class HOT 2
- [QUERY] InteractiveBrowserCredential from .NET 8 WebApp HOT 2
- [Azure.AI.Personalizer] Remove direct reference on System.Text.Json after release of Azure.Core HOT 1
- [FEATURE REQ] Support object ID for ManagedIdentityCredential in AzureComponentFactory
- System.NullReferenceException on at OpenAI.Chat.StreamingChatCompletionUpdate.get_ContentUpdate() HOT 2
- [QUERY] How To Disable Dependency Tracking Of HTTP 404 Requests HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-net.